trace

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 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 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.

func Version

func Version() string

Version is the current release version of the dubbogo instrumentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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