grpc

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: 21 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            [50]byte
	Target            [50]byte
	SpanContext       context.EBPFSpanContext
	ParentSpanContext context.EBPFSpanContext
}

Event represents an event in the gRPC client during a gRPC request.

type Instrumentor

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

Instrumentor is the gRPC client instrumentor.

func New

func New() *Instrumentor

New returns a new Instrumentor.

func (*Instrumentor) Close

func (g *Instrumentor) Close()

Close stops the Instrumentor.

func (*Instrumentor) FuncNames

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

FuncNames returns the function names from "google.golang.org/grpc" that are instrumented.

func (*Instrumentor) LibraryName

func (g *Instrumentor) LibraryName() string

LibraryName returns the gRPC package import path.

func (*Instrumentor) Load

Load loads all instrumentation offsets.

func (*Instrumentor) Run

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

Run runs the events processing loop.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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