Documentation ¶
Overview ¶
Package trace instruments dubbogo with open-telemetry (https://github.com/open-telemetry/opentelemetry-go).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RPCNameKey = attribute.Key("name") RPCMessageTypeKey = attribute.Key("message.type") RPCMessageIDKey = attribute.Key("message.id") RPCSystemDubbo = semconv.RPCSystemKey.String("apache_dubbo") RPCNameMessage = RPCNameKey.String("message") RPCMessageTypeSent = RPCMessageTypeKey.String("SENT") RPCMessageTypeReceived = RPCMessageTypeKey.String("RECEIVED") )
Functions ¶
func Extract ¶
func Extract(ctx context.Context, metadata map[string]interface{}, propagators propagation.TextMapPropagator) (baggage.Baggage, trace.SpanContext)
Extract returns the correlation context and span context that another service encoded in the dubbo metadata object with Inject. This function is meant to be used on incoming requests.
func Inject ¶
func Inject(ctx context.Context, metadata map[string]interface{}, propagators propagation.TextMapPropagator)
Inject injects correlation context and span context into the dubbo metadata object. This function is meant to be used on outgoing requests.
func SemVersion ¶
func SemVersion() string
SemVersion is the semantic version to be supplied to tracer/meter creation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.