httpfltr

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadHTTPInfoIntoSpan added in v1.1.0

func ReadHTTPInfoIntoSpan(record *ringbuf.Record) (request.Span, bool, error)

func RegisterActiveService added in v1.1.0

func RegisterActiveService(pid uint32, svc svc.ID)

func UnregisterActiveService added in v1.1.0

func UnregisterActiveService(pid uint32)

Types

type BPFConnInfo

type BPFConnInfo bpfConnectionInfoT

type BPFHTTPInfo

type BPFHTTPInfo bpfHttpInfoT

type HTTPInfo

type HTTPInfo struct {
	BPFHTTPInfo
	Method  string
	URL     string
	Host    string
	Peer    string
	Service svc.ID
}

type PidsFilter added in v1.1.0

type PidsFilter interface {
	AllowPID(uint32)
	BlockPID(uint32)
	Filter(inputSpans []request.Span) []request.Span
	CurrentPIDs() map[uint32]map[uint32]struct{}
}

type Tracer

type Tracer struct {
	Service *svc.ID
	// contains filtered or unexported fields
}

func New added in v0.3.2

func New(cfg *pipe.Config, metrics imetrics.Reporter) *Tracer

func (*Tracer) AddCloser

func (p *Tracer) AddCloser(c ...io.Closer)

func (*Tracer) AllowPID added in v0.3.2

func (p *Tracer) AllowPID(pid uint32, svc svc.ID)

func (*Tracer) AlreadyInstrumentedLib added in v1.1.0

func (p *Tracer) AlreadyInstrumentedLib(_ uint64) bool

func (*Tracer) BlockPID added in v0.3.2

func (p *Tracer) BlockPID(pid uint32)

func (*Tracer) BpfObjects

func (p *Tracer) BpfObjects() any

func (*Tracer) Constants

func (p *Tracer) Constants(_ *exec.FileInfo, _ *goexec.Offsets) map[string]any

func (*Tracer) GoProbes

func (p *Tracer) GoProbes() map[string]ebpfcommon.FunctionPrograms

func (*Tracer) KProbes

func (p *Tracer) KProbes() map[string]ebpfcommon.FunctionPrograms

func (*Tracer) Load

func (p *Tracer) Load() (*ebpf.CollectionSpec, error)

func (*Tracer) RecordInstrumentedLib added in v1.1.0

func (p *Tracer) RecordInstrumentedLib(_ uint64)

func (*Tracer) Run

func (p *Tracer) Run(ctx context.Context, eventsChan chan<- []request.Span, service svc.ID)

func (*Tracer) SocketFilters

func (p *Tracer) SocketFilters() []*ebpf.Program

func (*Tracer) UProbes

func (p *Tracer) UProbes() map[string]map[string]ebpfcommon.FunctionPrograms

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL