-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat: add tracing to worker and proxy #1014
base: next
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,6 +114,16 @@ The proxy service uses this health check to determine if a worker is available t | |
|
||
Both the worker and the proxy will use the `info` log level by default, but it can be changed by setting the `RUST_LOG` environment variable. | ||
|
||
## Traces | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would maybe combine this and logging into one section (or make this a sub-section of logging?). Also, I would add more details here. For example, it is not clear where tracing/logging info is written to. Is it Basically, a bit more context about how tracing/logging works would be helpful. |
||
|
||
The service uses the `tracing` crate for structured logging and tracing. Traces are enabled by default, and uses opentelemetry to export traces to a Jaeger instance. The traces can be visualized using the Jaeger UI, which can be used by running: | ||
|
||
```bash | ||
docker run -d -p4317:4317 -p16686:16686 jaegertracing/all-in-one:latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This assumes that we have Also, are there alternative ways to do this? We don't need to describe them but if there is a link to how to do it w/o Docker, I'd include it. |
||
``` | ||
|
||
Then, you can access the Jaeger UI by opening `http://localhost:16686/` in your browser. | ||
|
||
## Features | ||
|
||
Description of this crate's feature: | ||
|
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.
nit: I would get rid of the patch versions.