-
Notifications
You must be signed in to change notification settings - Fork 13
feat: Introduce logging context to Tangle #66
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
base: master
Are you sure you want to change the base?
Conversation
45fca00 to
c08c8f2
Compare
|
Thank you for this PR. I'm reviewing the changes and I think we might want to design this slightly differently. On the other hand, API requests might benefit from trace IDs so that all logging messages that are generated when processing a single API call can be filtered and grouped together. |
This sounds good to me. I will make some adjustments. Thanks! |
c08c8f2 to
e824f64
Compare
2bfcc23 to
4e7b1a3
Compare
The work has been re-designed. Here is a summary: Logging Context ImprovementsSummaryEnhanced the Tangle orchestrator logging to automatically include execution context (execution_id, container_execution_id) in all log messages, making it easier to trace and filter logs for specific executions. Changes Made1. Added Logging Context to Orchestrator (
|
Ark-kun
left a comment
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.
Thank you. This looks pretty good.
I've left some comments and approved it.
4e7b1a3 to
f684007
Compare
f684007 to
d6101f4
Compare
**Changes:**
* Adds logging context helpers
* Add request middleware to generate unique request id and set it in the logging context around API requests
* Sets the x-tangle-request-id on the response for client consumption
d6101f4 to
f0a7c32
Compare
Issue
#67
Changes:
extrasparameterextrasparameter, or creating a new one if None)Test pipeline notes:
ytest,starlette,httpx(e.g.pip3 install ...)