-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Cargo] Update opentelemetry crates to their latest version #92
Conversation
I think it was already deprecated when I first set it up too 😅 I just couldn't figure out how to get |
I could set up Jaeger locally if you want and test all of that, I'm familiar with this tool. |
3401bf4
to
e799597
Compare
Signed-off-by: jaudiger <jeremy.audiger@ioterop.com>
e799597
to
7ac0709
Compare
Signed-off-by: jaudiger <jeremy.audiger@ioterop.com>
Signed-off-by: jaudiger <jeremy.audiger@ioterop.com>
I finished testing this PR. And the reporting of traces is not broken, but an adaptation could be needed depending on how you're testing before @kylewlacy. I used the
Brioche was launched inside another docker container with the following command: docker run --name brioche-devenv --platform linux/amd64 -v $(pwd):/workspace -v $(pwd)/../brioche-packages:/tmp/brioche-packages -v brioche-cache:/home/container/.local/share/brioche -it --link jaeger-jaeger-1 --net jaeger_default brioche bash The link and network arguments are here necessary, since I launched Jaeger through docker compose, and a new docker network was created by the compose command. I could have put everything inside the same docker-compose.yml file, though. And then inside the container: BRIOCHE_JAEGER_ENDPOINT=http://jaeger:4318/v1/traces cargo run -- fmt -p /tmp/brioche-packages/packages/bat The difference between The port 4318 accepts traces in OpenTelemetry OTLP format . I could have used the port 4317, but I had issues with gRPC. The traces weren't exported correctly to Jaeger, only the child spans were exported, not the parent ones. The traces were incomplete. I suspect an issue inside one of the otel libraries used. |
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.
Tested this out and works great, LGTM!
Oh and it might be worth changing the env vars at some point since this is no longer Jaeger-specific, but since this is more of an internal debugging tool I don't feel strongly about when that happens. I might take it on sometime when doing some code cleanup |
Update all the opentelemetry crates.
opentelemetry-jaeger
dependency was deprecated in favor ofopentelemetry-otlp
which provides agnostic APIs to export traces, logs, metrics.Unfortunately, due to
console-subscriber
we now have to duplicate some dependencies such astonic
...It depends on the unreleased version 0.25.0 of
tracing-opentelemetry
, see PR (for context: tokio-rs/tracing-opentelemetry#155)