client

package
v0.0.0-...-b6bdbfe Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenTelemetryPlugin

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

func NewOpenTelemetryPlugin

func NewOpenTelemetryPlugin(tracer trace.Tracer, propagators propagation.TextMapPropagator) *OpenTelemetryPlugin

func (*OpenTelemetryPlugin) PostCall

func (p *OpenTelemetryPlugin) PostCall(ctx context.Context, servicePath, serviceMethod string, args interface{}, reply interface{}, err error) error

func (*OpenTelemetryPlugin) PreCall

func (p *OpenTelemetryPlugin) PreCall(ctx context.Context, servicePath, serviceMethod string, args interface{}) error

func (*OpenTelemetryPlugin) WithMeter

func (p *OpenTelemetryPlugin) WithMeter(meter metric.Meter) *OpenTelemetryPlugin

type Recorder

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

Recorder knows how to record and measure the metrics. This has the required methods to be used with the HTTP middlewares.

func GetRecorder

func GetRecorder(meter metric.Meter) *Recorder

Jump to

Keyboard shortcuts

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