1234567891011121314151617181920212223 |
- // Copyright The OpenTelemetry Authors
- // SPDX-License-Identifier: Apache-2.0
- package influxdbreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/influxdbreceiver"
- import (
- "github.com/influxdata/influxdb-observability/common"
- "go.uber.org/zap"
- )
- type zapInfluxLogger struct {
- *zap.SugaredLogger
- }
- func newZapInfluxLogger(logger *zap.Logger) common.Logger {
- return &zapInfluxLogger{
- logger.Sugar(),
- }
- }
- func (l zapInfluxLogger) Debug(msg string, kv ...any) {
- l.SugaredLogger.Debugw(msg, kv...)
- }
|