server

package
v0.2.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	StartTime   uint64
	EndTime     uint64
	Method      [7]byte
	Path        [100]byte
	SpanContext context.EBPFSpanContext
}

Event represents an event in an HTTP server during an HTTP request-response.

type Instrumentor

type Instrumentor struct {
	// contains filtered or unexported fields
}

Instrumentor is the net/http instrumentor.

func New

func New() *Instrumentor

New returns a new Instrumentor.

func (*Instrumentor) Close

func (h *Instrumentor) Close()

Close stops the Instrumentor.

func (*Instrumentor) FuncNames

func (h *Instrumentor) FuncNames() []string

FuncNames returns the function names from "net/http" that are instrumented.

func (*Instrumentor) LibraryName

func (h *Instrumentor) LibraryName() string

LibraryName returns the net/http package name.

func (*Instrumentor) Load

Load loads all instrumentation offsets.

func (*Instrumentor) Run

func (h *Instrumentor) Run(eventsChan chan<- *events.Event)

Run runs the events processing loop.

Jump to

Keyboard shortcuts

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