2024-02-24 00:34:55 +00:00
|
|
|
// Copyright The OpenTelemetry Authors
|
2024-10-16 10:54:40 +00:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
2022-07-07 20:11:50 +00:00
|
|
|
|
2024-02-24 00:34:55 +00:00
|
|
|
package otel // import "go.opentelemetry.io/otel"
|
2022-07-07 20:11:50 +00:00
|
|
|
|
2024-02-24 00:34:55 +00:00
|
|
|
import (
|
|
|
|
"github.com/go-logr/logr"
|
2022-07-07 20:11:50 +00:00
|
|
|
|
2024-02-24 00:34:55 +00:00
|
|
|
"go.opentelemetry.io/otel/internal/global"
|
|
|
|
)
|
|
|
|
|
|
|
|
// SetLogger configures the logger used internally to opentelemetry.
|
|
|
|
func SetLogger(logger logr.Logger) {
|
|
|
|
global.SetLogger(logger)
|
2022-07-07 20:11:50 +00:00
|
|
|
}
|