Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientTraceInterceptor ¶
type ClientTraceInterceptor grpc.UnaryClientInterceptor
ClientTraceInterceptor gives a named type to the grpc.UnaryClientInterceptor implementation provided by otelgrpc
func NewClientTraceInterceptor ¶
func NewClientTraceInterceptor( tp trace.TracerProvider, tmp propagation.TextMapPropagator, ) ClientTraceInterceptor
NewClientTraceInterceptor creates a new gRPC client interceptor that tracks each request with an encapsulating span using the provided TracerProvider and TextMapPropagator.
type ExportConfig ¶
type ExportConfig struct {
// contains filtered or unexported fields
}
ExportConfig represents YAML structured configuration for a set of OTEL trace/span/log exporters.
func (*ExportConfig) MetricExporters ¶
func (ec *ExportConfig) MetricExporters() ([]metric.Exporter, error)
func (*ExportConfig) SpanExporters ¶
func (ec *ExportConfig) SpanExporters() ([]otelsdktrace.SpanExporter, error)
func (*ExportConfig) UnmarshalYAML ¶
func (ec *ExportConfig) UnmarshalYAML(n *yaml.Node) error
UnmarshalYAML loads the state of an ExportConfig from parsed YAML
type ServerTraceInterceptor ¶
type ServerTraceInterceptor grpc.UnaryServerInterceptor
ServerTraceInterceptor gives a named type to the grpc.UnaryServerInterceptor implementation provided by otelgrpc
func NewServerTraceInterceptor ¶
func NewServerTraceInterceptor( tp trace.TracerProvider, tmp propagation.TextMapPropagator, ) ServerTraceInterceptor
NewServerTraceInterceptor creates a new gRPC server interceptor that tracks each request with an encapsulating span using the provided TracerProvider and TextMapPropagator.