internal
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package internal defines the PluginOption interface.
Index¶
Constants¶
This section is empty.
Variables¶
var SetPluginOptionany// func(*Options, PluginOption)SetPluginOption sets the plugin option on Options.
Functions¶
This section is empty.
Types¶
typePluginOption¶
type PluginOption interface {// GetMetadata creates a MD with metadata exchange labels.GetMetadata()metadata.MD// GetLabels emits labels to be attached to metrics for the RPC that// contains the provided incomingMetadata.GetLabels(incomingMetadatametadata.MD) map[string]string}PluginOption is the interface which represents a plugin option for theOpenTelemetry instrumentation component. This plugin option emits labels frommetadata and also creates metadata containing labels. These labels areintended to be added to applicable OpenTelemetry metrics recorded in theOpenTelemetry instrumentation component.
In the future, we hope to stabilize and expose this API to allow plugins toinject labels of their choosing into metrics recorded.
Directories¶
| Path | Synopsis |
|---|---|
Package testutils contains helpers for OpenTelemetry tests. | Package testutils contains helpers for OpenTelemetry tests. |
Package tracing implements the OpenTelemetry carrier for context propagation in gRPC tracing. | Package tracing implements the OpenTelemetry carrier for context propagation in gRPC tracing. |