opentelemetry

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInterceptorBuilder added in v0.0.3

type ClientInterceptorBuilder struct {
	Namespace string // The Prometheus namespace for the metrics.
	Subsystem string // The Prometheus subsystem for the metrics.
	Name      string // The base name for the metrics to be built.
	Help      string // Help provides the description of the metrics.
}

ClientInterceptorBuilder is used to create a UnaryClientInterceptor that collects metrics on gRPC client requests.

func (ClientInterceptorBuilder) BuildUnary added in v0.0.3

BuildUnary builds and returns a new grpc.UnaryClientInterceptor that will record response time, error count, and active requests metrics.

type ServerInterceptorBuilder added in v0.0.3

type ServerInterceptorBuilder struct {
	Namespace string // Namespace for Prometheus metrics
	Subsystem string // Subsystem is the subset of the namespace
	Name      string // Name of the metric
	Help      string // Help provides some description about the metric

	Port string // Port where the server is running. If not empty, it will be appended to the address label.
}

ServerInterceptorBuilder is a struct used to configure and build UnaryServerInterceptor for gRPC, focusing on metrics like response time, error count, and active request count.

func (ServerInterceptorBuilder) BuildUnary added in v0.0.3

BuildUnary constructs a UnaryServerInterceptor with Prometheus monitoring.

Jump to

Keyboard shortcuts

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