-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: enable tracing upon import / improve logging setup #7859
Conversation
@@ -330,6 +331,7 @@ def configure_logging(use_json: Optional[bool] = None) -> None: | |||
structlog.stdlib.add_log_level, | |||
# Adds the current timestamp in ISO format to logs | |||
structlog.processors.TimeStamper(fmt="iso"), | |||
structlog.contextvars.merge_contextvars, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simple additions and improve the usability of the default configuration
Pull Request Test Coverage Report for Build 9512845635Details
💛 - Coveralls |
@@ -13,6 +14,9 @@ | |||
# This is a no-op unless `structlog` is installed | |||
haystack.logging.configure_logging() | |||
|
|||
# Same for tracing (no op if `opentelemetry` or `ddtrace` is not installed) | |||
haystack.tracing.auto_enable_tracing() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Related Issues
Proposed Changes:
How did you test it?
Notes for the reviewer
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.