-
Notifications
You must be signed in to change notification settings - Fork 408
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Enhancement suggestion: correlation id middleware combined with logger and sampler #9
Comments
Hey Marcio, I did considered though I haven't been able to create a design document to flesh this out yet. I'm currently working on another project until mid April, but if that's something you'd like to kick off I'd be super happy to contribute. Thanks a lot for reaching out |
Hello Heitor, I would like to contribute if you give me some pointers. Regards, |
Absolutely @marcioemiranda - Here's a breakdown of how the logger works
I see two ways of implementing it:
I personally prefer B as it's more extensible since we could also use the correlation ID data in Tracer to create an annotation, and in future modules like detecting retries, etc. Regardless of the option, it'll have to add a new key Happy to explain further but hopefully that makes sense |
I've decided to look at this after GA - Logger can append additional keys, and custom middlewares can be created now. I want to spend more time in the design phase to make this scalable to multiple event sources too. I'll ping here when I start working on a design to get your ideas too. |
This would be an awesome feature, and would be super useful for many folks. |
yes, definitely interested. |
Couldn't spend much quality time to think about the developer experience yet -- If anyone has the bandwidth, I'd appreciate a RFC for further discussion here. |
Yes, this would be super useful. I will see if i have the headspace for this :) |
I created a demo PR here: |
FYI @marcioemiranda @patrickwerz @keithrozario the PR was merged for the first part of this. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Hello Heitor,
Have you considered adding a correlation_id middleware like the one in DAZN power tools?
It could work together with the logger tool by adding correlation_id to the logs automatically, and also be used by the sampling feature (the whole transaction is sampled instead of each function invoke).
Regards,
Marcio.
The text was updated successfully, but these errors were encountered: