package
1.35.0
Repository: https://github.com/snowflake-labs/sansshell.git
Documentation: pkg.go.dev

# Functions

NewContextWithRecorder returns context with recorder attached.
NewOtelRecorder returns a new OtelRecorder instance.
RecorderFromContext returns the MetricsRecorder object in the context if exists Otherwise it returns nil.
RecorderFromContextOrNoop returns the MetricsRecorder object in the context if exists Otherwise it returns a noOpRecorder object.
StreamClientMetricsInterceptor returns a stream client grpc interceptor which adds recorder to the grpc stream context.
StreamServerMetricsInterceptor returns a stream server grpc interceptor which adds recorder to the grpc stream context.
UnaryClientMetricsInterceptor returns an unary client grpc interceptor which adds recorder to the grpc request context.
UnaryServerMetricsInterceptor returns an unary server grpc interceptor which adds recorder to the grpc request context.
WithMetricNamePrefix adds metric name prefix to the OtelRecorder.

# Structs

MetricDefinition specifies the metric name and description.
OtelRecorder is a struct used for recording metrics with otel It implements MetricsRecorder.

# Interfaces

MetricsRecorder contains methods used for collecting metrics.
No description provided by the author