fix panic on missing formatter in console_exporter.ProcessorOptions
This commit is contained in:
@ -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