grpc

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package grpc provides an instrumentor for the client in the google.golang.org/grpc package.

Deprecated: This package is no longer supported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	context.BaseSpanProperties
	Method [50]byte
	Target [50]byte
}

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
Package server provides an instrumentor for the server in the google.golang.org/grpc package.
Package server provides an instrumentor for the server in the google.golang.org/grpc package.

Jump to

Keyboard shortcuts

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