Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
17
plugins/inputs/opentelemetry/logger.go
Normal file
17
plugins/inputs/opentelemetry/logger.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package opentelemetry
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/influxdata/telegraf"
|
||||
)
|
||||
|
||||
type otelLogger struct {
|
||||
telegraf.Logger
|
||||
}
|
||||
|
||||
// Debug logs a debug message, patterned after log.Print.
|
||||
func (l otelLogger) Debug(msg string, kv ...interface{}) {
|
||||
format := msg + strings.Repeat(" %s=%q", len(kv)/2)
|
||||
l.Logger.Debugf(format, kv...)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue