fix panic on missing formatter in console_exporter.ProcessorOptions
This commit is contained in:
1 parent
d119563c7d
commit
c70a285e70
2 files changed
+4
-2
No files matched your search
@@ -76,7 +76,8 @@ func NewProcessor(opts ProcessorOptions) trace.SpanProcessor {
|
||||
if opts.TraceFormatter != nil {
|
||||
formatter = *opts.TraceFormatter
|
||||
} else {
|
||||
formatter = TraceFormatter(nil)
|
||||
fmt := NewPrettyMultilineFormatter()
|
||||
formatter = fmt
|
||||
}
|
||||
if opts.FilterOnLevel != 0 {
|
||||
lvl = opts.FilterOnLevel
|
||||
|
||||
Reference in new issue
Block a user