Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

embedded

v1.47.0
go.opentelemetry.io/otel/trace/embedded

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

4 matches

Top ↑

Package embedded provides interfaces embedded within the OpenTelemetry trace API.

Implementers of the OpenTelemetry trace API can embed the relevant type from this package into their implementation directly. Doing so will result in a compilation error for users when the OpenTelemetry trace API is extended (which is something that can happen without a major version bump of the API package).

Types

Span

type Span interface {
	// contains filtered or unexported methods
}

Span is embedded in go.opentelemetry.io/otel/trace.Span.

Embed this interface in your implementation of the go.opentelemetry.io/otel/trace.Span if you want users to experience a compilation error, signaling they need to update to your latest implementation, when the go.opentelemetry.io/otel/trace.Span interface is extended (which is something that can happen without a major version bump of the API package).

Tracer

type Tracer interface {
	// contains filtered or unexported methods
}

Tracer is embedded in go.opentelemetry.io/otel/trace.Tracer.

Embed this interface in your implementation of the go.opentelemetry.io/otel/trace.Tracer if you want users to experience a compilation error, signaling they need to update to your latest implementation, when the go.opentelemetry.io/otel/trace.Tracer interface is extended (which is something that can happen without a major version bump of the API package).

TracerProvider

type TracerProvider interface {
	// contains filtered or unexported methods
}

TracerProvider is embedded in go.opentelemetry.io/otel/trace.TracerProvider.

Embed this interface in your implementation of the go.opentelemetry.io/otel/trace.TracerProvider if you want users to experience a compilation error, signaling they need to update to your latest implementation, when the go.opentelemetry.io/otel/trace.TracerProvider interface is extended (which is something that can happen without a major version bump of the API package).

Dependency graph