mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-20 10:27:28 -06:00
- go.opentelemetry.io/contrib/exporters/autoexport v0.60.0 -> v0.61.0 - go.opentelemetry.io/contrib/instrumentation/runtime v0.60.0 -> v0.61.0 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4196 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
36 lines
1.7 KiB
Go
36 lines
1.7 KiB
Go
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// 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).
|
|
//
|
|
// [OpenTelemetry Logs API]: https://pkg.go.dev/go.opentelemetry.io/otel/log
|
|
package embedded // import "go.opentelemetry.io/otel/log/embedded"
|
|
|
|
// 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,
|
|
// signaling they need to update to your latest implementation, when the [Logs
|
|
// Bridge API LoggerProvider] interface is extended (which is something that
|
|
// can happen without a major version bump of the API package).
|
|
//
|
|
// [Logs API LoggerProvider]: https://pkg.go.dev/go.opentelemetry.io/otel/log#LoggerProvider
|
|
type LoggerProvider interface{ loggerProvider() }
|
|
|
|
// Logger is embedded in [Logs API Logger].
|
|
//
|
|
// Embed this interface in your implementation of the [Logs API Logger]
|
|
// if you want users to experience a compilation error, signaling they need to
|
|
// update to your latest implementation, when the [Logs API Logger]
|
|
// interface is extended (which is something that can happen without a major
|
|
// version bump of the API package).
|
|
//
|
|
// [Logs API Logger]: https://pkg.go.dev/go.opentelemetry.io/otel/log#Logger
|
|
type Logger interface{ logger() }
|