internal

package
v0.0.0-...-ada6787 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package internal defines the PluginOption interface.

Index

Constants

This section is empty.

Variables

View Source
var SetPluginOption any // func(*Options, PluginOption)

SetPluginOption sets the plugin option on Options.

Functions

This section is empty.

Types

type PluginOption

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(incomingMetadata metadata.MD) map[string]string
}

PluginOption is the interface which represents a plugin option for the OpenTelemetry instrumentation component. This plugin option emits labels from metadata and also creates metadata containing labels. These labels are intended to be added to applicable OpenTelemetry metrics recorded in the OpenTelemetry instrumentation component.

In the future, we hope to stabilize and expose this API to allow plugins to inject labels of their choosing into metrics recorded.

Directories

Path Synopsis
Package testutils contains helpers for OpenTelemetry tests.
Package testutils contains helpers for OpenTelemetry tests.

Jump to

Keyboard shortcuts

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