mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 19:04:19 +00:00
Reduce log volume a bit, needs more work
This commit is contained in:
parent
c23363d561
commit
392be5f6dc
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ class ConsoleSpanProcessor(SpanProcessor):
|
|||
# Print attributes indented
|
||||
if span.attributes:
|
||||
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 events indented
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue