trace

package
v3.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

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 baggage 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL