sdkgo.opentelemetry.io/otel/sdk/instrumentation Index | Files

package instrumentation

import "go.opentelemetry.io/otel/sdk/instrumentation"

Package instrumentation provides types to represent the code libraries that provide OpenTelemetry instrumentation. These types are used in the OpenTelemetry signal pipelines to identify the source of telemetry.

See https://github.com/open-telemetry/oteps/blob/d226b677d73a785523fe9b9701be13225ebc528d/text/0083-component.md and https://github.com/open-telemetry/oteps/blob/d226b677d73a785523fe9b9701be13225ebc528d/text/0201-scope-attributes.md for more information.

Index

Types

type Library

type Library = Scope

Library represents the instrumentation library.

Deprecated: use Scope instead.

type Scope

type Scope struct {
	// Name is the name of the instrumentation scope. This should be the
	// Go package name of that scope.
	Name string
	// Version is the version of the instrumentation scope.
	Version string
	// SchemaURL of the telemetry emitted by the scope.
	SchemaURL string
	// Attributes of the telemetry emitted by the scope.
	Attributes attribute.Set
}

Scope represents the instrumentation scope.

Source Files

doc.go library.go scope.go

Version
v1.34.0 (latest)
Published
Jan 17, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 day ago

Tools for package owners.