Reduce log volume a bit, needs more work

This commit is contained in:
Ashwin Bharambe 2024-12-05 21:40:21 -08:00
parent c23363d561
commit 392be5f6dc

View file

@ -71,6 +71,9 @@ class ConsoleSpanProcessor(SpanProcessor):
# Print attributes indented # Print attributes indented
if span.attributes: if span.attributes:
for key, value in span.attributes.items(): for key, value in span.attributes.items():
# Skip internal attributes; also rename these internal attributes to have underscores
if key in ("class", "method", "type", "__root__", "__ttl__"):
continue
print(f" {COLORS['dim']}{key}: {value}{COLORS['reset']}") print(f" {COLORS['dim']}{key}: {value}{COLORS['reset']}")
# Print events indented # Print events indented