Versions in this module Expand all Collapse all v1 v1.4.4 Nov 9, 2022 v1.4.3 Nov 9, 2022 Changes in this version + const GRPCStatusCodeKey + const RPCMessageCompressedSizeKey + const RPCMessageIDKey + const RPCMessageTypeKey + const RPCMessageUncompressedSizeKey + const RPCNameKey + const TraceName + var MessageReceived = messageType(RPCMessageTypeReceived) + var MessageSent = messageType(RPCMessageTypeSent) + var RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED") + var RPCMessageTypeSent = RPCMessageTypeKey.String("SENT") + var RPCNameMessage = RPCNameKey.String("message") + var RPCSystemGRPC = semconv.RPCSystemKey.String("grpc") + var TraceIdKey = http.CanonicalHeaderKey("x-trace-id") + func Extract(ctx context.Context, p propagation.TextMapPropagator, metadata *metadata.MD) (baggage.Baggage, sdktrace.SpanContext) + func Inject(ctx context.Context, p propagation.TextMapPropagator, metadata *metadata.MD) + func ParseFullMethod(fullMethod string) (string, []attribute.KeyValue) + func PeerAttr(addr string) []attribute.KeyValue + func PeerFromCtx(ctx context.Context) string + func SpanInfo(fullMethod, peerAddress string) (string, []attribute.KeyValue) + func StartAgent(c Config) + func StatusCodeAttr(c gcodes.Code) attribute.KeyValue + func StopAgent() + type Config struct + Batcher string + Endpoint string + Name string + Sampler float64