-
Notifications
You must be signed in to change notification settings - Fork 1.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
[shippingservice] fix context propagation #1433
[shippingservice] fix context propagation #1433
Conversation
@TommyCpp would you be able to take a look at this one? |
We need to implement some quote mock in order to run the tests, and as I'm not a Rust expert I've opted to remove the non-working tests as they were not working since we added |
Will have to decide if we should rewrite this service using OTel Tracing API. It looks like its currently using an external instrumentation library which converts spans emitted using tokio/tracing crate into OTel spans. It is undecided how such usage is going to be supported going forward. This might also explain why logs are not correlated to spans, as Spans are not produced using OTel Tracing APIs. |
Sorry missed this earlier
It's a third party instrument on http clients IIRC. Probably better if we rewrite to handle the propagation ourselfs |
What's the status here, should this be merged? |
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.
We should using tracing
and not log
crate, if we plan to add logging in this PR.
https://github.com/open-telemetry/opentelemetry-demo/pull/1433/files#r1516487971
or scope down to just fixing context propagation issue alone.
No. I left a blocking comment just now. Outside of that I'd love to get some opinions from demo maintainers about the Rust app - it is NOT using OTel Tracing API, but uses Options:
Either requires rework (after all, no signal is stable in OTel Rust). I'd suggest to do 1. @open-telemetry/rust-approvers Please share your thoughts too. |
I'll take a look at it again soon. |
I see. I'd probably opt for option 1 then. |
Do we have any instrumentation library in OTel Rust ATM? |
Nothing maintained by opentelemetry. |
Just my 2 cents here: I'm in favour of getting rid of |
@cijothomas I'd appreciate if you could double check the code whenever you have some minutes. |
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.
Looks good from my perspective. I'll try running it later today.
@open-telemetry/rust-approvers would anyone be able to give us a green light on this one? |
Changes
Fix #1318.
As I was touching this service I've refactored the code to make it more readable.
Merge Requirements
For new features contributions please make sure you have completed the following
essential items:
CHANGELOG.md
updated to document new feature additionsMaintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.