package
1.72.0-dev
Repository: https://github.com/grpc/grpc-go.git
Documentation: pkg.go.dev

# Packages

Package csm contains utilities for Google Cloud Service Mesh observability.

# Functions

DefaultMetrics returns a set of default OpenTelemetry metrics.
DialOption returns a dial option which enables OpenTelemetry instrumentation code for a grpc.ClientConn.
ServerOption returns a server option which enables OpenTelemetry instrumentation code for a grpc.Server.

# Constants

ClientAttemptDurationMetricName is the end-to-end time taken to complete a client call attempt.
ClientAttemptRcvdCompressedTotalMessageSizeMetricName is the compressed message bytes received per call attempt.
ClientAttemptSentCompressedTotalMessageSizeMetricName is the compressed message bytes sent per client call attempt.
ClientAttemptStartedMetricName is the number of client call attempts started.
ClientCallDurationMetricName is the time taken by gRPC to complete an RPC from application's perspective.
ServerCallDurationMetricName is the end-to-end time taken to complete a call from server transport's perspective.
ServerCallRcvdCompressedTotalMessageSizeMetricName is the compressed message bytes received per server call.
ServerCallSentCompressedTotalMessageSizeMetricName is the compressed message bytes sent per server call.
ServerCallStartedMetricName is the number of server calls started.

# Variables

provide "advice" through API, SDK should set this too.
DefaultSizeBounds are the default bounds for metrics which record size.

# Structs

GRPCTraceBinPropagator is an OpenTelemetry TextMapPropagator which is used to extract and inject trace context data from and into headers exchanged by gRPC applications.
MetricsOptions are the metrics options for OpenTelemetry instrumentation.
Options are the options for OpenTelemetry instrumentation.