package
0.4.3
Repository: https://github.com/donetkit/contrib-gin.git
Documentation: pkg.go.dev

# Functions

Extract returns the correlation context and span context that another service encoded in the gRPC metadata object with Inject.
Inject injects correlation context and span context into the gRPC metadata object.
ParseFullMethod returns a span name following the OpenTelemetry semantic conventions as well as all applicable span attribute.KeyValue attributes based on a gRPC's FullMethod.
SemVersion is the semantic version to be supplied to tracer/meter creation.
StreamClientInterceptor returns a grpc.StreamClientInterceptor suitable for use in a grpc.Dial call.
StreamServerInterceptor returns a grpc.StreamServerInterceptor suitable for use in a grpc.NewServer call.
UnaryClientInterceptor returns a grpc.UnaryClientInterceptor suitable for use in a grpc.Dial call.
UnaryServerInterceptor returns a grpc.UnaryServerInterceptor suitable for use in a grpc.NewServer call.
Version is the current release version of the gRPC instrumentation.
WithExcludeRegexEndpoint set excludeRegexEndpoint function regexp.
WithExcludeRegexMethod set excludeRegexMethod function regexp.
WithExcludeRegexStatus set excludeRegexStatus function regexp.
WithName name default Service.
WithSpanIdKey spanIdKey default span-id.
WithTraceIdKey traceIdKey default trace-id.
WithTracer tracerServer tracer.Server.
WithWriterSpanId writer spanId function.
WithWriterTraceId writer traceId function.

# Constants

GRPCStatusCodeKey is convention for numeric status code of a gRPC request.
The compressed size of the message transmitted or received in bytes.
Identifier of message transmitted or received.
Type of message transmitted or received.
The uncompressed size of the message transmitted or received in bytes.
Name of message transmitted or received.

# Variables

Semantic conventions for common RPC attributes.
Semantic conventions for RPC message types.
Semantic convention for a message named message.
Semantic convention for gRPC as the remoting system.

# Interfaces

Option applies an option value for a config.