1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-08-10 22:31:50 +02:00

log: Make whole Logs API user-facing (#6167)

Reason:
https://github.com/open-telemetry/opentelemetry-specification/pull/4352

Prior-art: https://github.com/open-telemetry/opentelemetry-go/pull/6018
Support for `EventName` field will be added in separate PRs.
This commit is contained in:
Robert Pająk
2025-01-17 07:00:28 +01:00
committed by GitHub
parent cbc3b6a5bb
commit e18299f7b7
2 changed files with 4 additions and 6 deletions

View File

@@ -8,6 +8,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## [Unreleased] ## [Unreleased]
### Changed
- Remove the notices from `Logger` to make the whole Logs API user-facing in `go.opentelemetry.io/otel/log`. (#6167)
### Fixed ### Fixed
- Relax minimum Go version to 1.22.0 in various modules. (#6073) - Relax minimum Go version to 1.22.0 in various modules. (#6073)

View File

@@ -28,9 +28,6 @@ type Logger interface {
// //
// Implementations of this method need to be safe for a user to call // Implementations of this method need to be safe for a user to call
// concurrently. // concurrently.
//
// Notice: Emit is intended to be used by log bridges.
// Is should not be used for writing instrumentation.
Emit(ctx context.Context, record Record) Emit(ctx context.Context, record Record)
// Enabled returns whether the Logger emits for the given context and // Enabled returns whether the Logger emits for the given context and
@@ -53,9 +50,6 @@ type Logger interface {
// //
// Implementations of this method need to be safe for a user to call // Implementations of this method need to be safe for a user to call
// concurrently. // concurrently.
//
// Notice: Enabled is intended to be used by log bridges.
// Is should not be used for writing instrumentation.
Enabled(ctx context.Context, param EnabledParameters) bool Enabled(ctx context.Context, param EnabledParameters) bool
} }