Skip to content

Commit

Permalink
Log opentelemetry trace and span ids.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii-Klimov committed Jan 16, 2024
1 parent 7f3fa06 commit dfb54dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aidial_assistant/utils/log_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def get_log_config(log_level: str) -> dict:
"formatters": {
"default": {
"()": "uvicorn.logging.DefaultFormatter",
"fmt": "%(levelprefix)s | %(asctime)s | %(name)s | %(process)d | %(message)s",
"fmt": "%(levelprefix)s | %(asctime)s | %(name)s | %(process)d | [trace_id=%(otelTraceID)s span_id=%(otelSpanID)s] - %(message)s",
"datefmt": "%Y-%m-%d %H:%M:%S",
"use_colors": True,
},
Expand Down

0 comments on commit dfb54dd

Please sign in to comment.