allow skipping callstack in errors and events

This commit is contained in:
2024-05-20 13:39:55 +02:00
parent c70a285e70
commit f5819972a4
3 changed files with 13 additions and 3 deletions

View File

@ -79,10 +79,10 @@ func NewProcessor(opts ProcessorOptions) trace.SpanProcessor {
fmt := NewPrettyMultilineFormatter()
formatter = fmt
}
if opts.FilterOnLevel != 0 {
if opts.FilterOnLevel != level.SeverityLevel(0) {
lvl = opts.FilterOnLevel
} else {
lvl = level.TRACE + 10
lvl = level.TRACE + 1
}
return &Processor{