1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2026-06-03 18:35:08 +02:00
Robert Pająk
2024-11-05 12:56:07 +01:00
committed by GitHub
parent a62c45a580
commit 12305663a9
3 changed files with 9 additions and 5 deletions
+6
View File
@@ -28,6 +28,9 @@ type Logger interface {
//
// Implementations of this method need to be safe for a user to call
// 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)
// Enabled returns whether the Logger emits for the given context and
@@ -50,6 +53,9 @@ type Logger interface {
//
// Implementations of this method need to be safe for a user to call
// 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
}