allow skipping callstack in errors and events

This commit is contained in:
goc_natalia committed 2024-05-20 13:39:55 +02:00
1 parent c70a285e70
commit f5819972a4
3 files changed
+13 -3

No files matched your search

@@ -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{