feat: add a new single-line formatter for console_exporter

Closes #7
This commit is contained in:
2024-09-10 15:52:03 +02:00
parent dc4d3942f5
commit 2004e1b2f5
2 changed files with 105 additions and 0 deletions

View File

@ -26,8 +26,11 @@ func main() {
envFilter := "OBSERVER_CONSOLE"
singlelineFmt := console_exporter.NewSimpleSinglelineFormatter()
exps = append(exps, exporters.DevConsoleExporter(console_exporter.ProcessorOptions{
FilterFromEnvVar: &envFilter,
TraceFormatter: &singlelineFmt,
}))
gelfExp, err := exporters.GelfExporter()