Skip to content
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

OTLP tracing #14125

Merged
merged 10 commits into from
Oct 10, 2023
Merged

OTLP tracing #14125

merged 10 commits into from
Oct 10, 2023

Conversation

mystenmark
Copy link
Contributor

@mystenmark mystenmark commented Oct 5, 2023

Enables export of tracing span data via OTLP. Can be viewed with grafana/tempo:

image

Commits:

  • OTLP tracing
  • Enable tracing via admin server
  • Local grafana instance via docker
  • Add tracing to execution path
  • Update docs
  • Update Cargo.lock

@vercel
Copy link

vercel bot commented Oct 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mysten-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 4:02pm
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 10, 2023 4:02pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 4:02pm
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 4:02pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 4:02pm

Cargo.lock Outdated Show resolved Hide resolved
Comment on lines +96 to +105
struct EnableTracing {
filter: String,
duration: String,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to disable it too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It disables automatically after the duration expires. I guess it wouldn't hurt to be able to disable it actively in case you set too long a duration by accident.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a disable route

@@ -73,6 +71,8 @@ fn main() {
.with_prom_registry(&prometheus_registry)
.init();

drop(metrics_rt);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these changes necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - otherwise when we initialize TelemetryConfig, there is no active tokio runtime, so it can't install the batch exporter.

crates/sui-swarm/src/memory/container.rs Show resolved Hide resolved
@mystenmark mystenmark enabled auto-merge (squash) October 10, 2023 16:01
@vercel vercel bot temporarily deployed to Preview – mysten-ui October 10, 2023 16:02 Inactive
@mystenmark mystenmark merged commit 8815756 into main Oct 10, 2023
31 checks passed
@mystenmark mystenmark deleted the mlogan-tracing branch October 10, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants