Search and commands

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

Type to search packages.

embedded

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

Documentation

pkg.go.dev ↗

Table of contents

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

3 matches

Top ↑

Package embedded provides interfaces embedded within the [OpenTelemetry Logs Bridge API].

Implementers of the OpenTelemetry Logs 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 Logs Bridge API] is extended (which is something that can happen without a major version bump of the API package).

Types

Logger

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

Logger is embedded in the Logs API Logger.

Embed this interface in your implementation of the Logs API Logger if you want users to experience a compilation error when the Logs API Logger interface is extended (which is something that can happen without a major version bump of the API package). This error signals that they need to update to your latest implementation.

LoggerProvider

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

LoggerProvider is embedded in the Logs API LoggerProvider.

Embed this interface in your implementation of the Logs API LoggerProvider if you want users to experience a compilation error when the [Logs Bridge API LoggerProvider] interface is extended (which is something that can happen without a major version bump of the API package). This error signals that they need to update to your latest implementation.

Dependency graph