-
Notifications
You must be signed in to change notification settings - Fork 82
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
chore: disable otel #2244
base: main
Are you sure you want to change the base?
chore: disable otel #2244
Conversation
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Deploying rivet with
|
Latest commit: |
e5b4079
|
Status: | ✅ Deploy successful! |
Preview URL: | https://2ed27c53.rivet.pages.dev |
Branch Preview URL: | https://03-21-chore-disable-otel.rivet.pages.dev |
d16645e
to
4dec3ef
Compare
247e69d
to
0a69d99
Compare
Deploying rivet-hub with
|
Latest commit: |
e5b4079
|
Status: | ✅ Deploy successful! |
Preview URL: | https://c26902bb.rivet-hub-7jb.pages.dev |
Branch Preview URL: | https://03-21-chore-disable-otel.rivet-hub-7jb.pages.dev |
6454908
to
2093976
Compare
2093976
to
e5b4079
Compare
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.
PR Summary
This PR makes significant changes to disable OpenTelemetry functionality across the Rivet codebase. Here's a summary of the key changes:
- Updates root Cargo.toml to use Tokio 1.44.0 with
full
andtracing
features enabled at workspace level - Disables OpenTelemetry in runtime/src/otel.rs by commenting out tracer and meter provider initialization
- Adds Tokio console support via new
TOKIO_CONSOLE_ENABLE
environment variable - Adds tokio_console.sh script for port forwarding the Tokio console service
Key points to consider:
- Workspace-level Tokio configuration ensures consistent versioning but requires careful verification that all necessary features are included
- Telemetry functionality is being replaced with alternative monitoring through Tokio console
- The changes maintain existing logging through logfmt while removing OpenTelemetry layers
- OpenTelemetry code is commented out rather than removed, suggesting this may be temporary
The changes appear well-structured but should be tested thoroughly to ensure monitoring capabilities remain sufficient without OpenTelemetry.
68 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
[workspace.dependencies.tokio] | ||
version = "1.40.0" | ||
default-features = false | ||
features = ["full"] | ||
version = "1.44.0" | ||
features = ["full", "tracing"] |
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.
style: Enabling default features could introduce unnecessary dependencies - consider keeping default-features = false and explicitly listing required features
pub struct OtelGuard { | ||
tracer_provider: SdkTracerProvider, | ||
meter_provider: SdkMeterProvider, | ||
//tracer_provider: SdkTracerProvider, | ||
//meter_provider: SdkMeterProvider, | ||
//logger_provider: SdkLoggerProvider, | ||
} |
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.
style: Empty struct could be replaced with unit struct pub struct OtelGuard;
since it no longer contains any fields
pub struct OtelGuard { | |
tracer_provider: SdkTracerProvider, | |
meter_provider: SdkMeterProvider, | |
//tracer_provider: SdkTracerProvider, | |
//meter_provider: SdkMeterProvider, | |
//logger_provider: SdkLoggerProvider, | |
} | |
pub struct OtelGuard; |
"test-util", | ||
"time", | ||
] } | ||
tokio.workspace = true |
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.
style: Consider keeping explicit feature flags in this package to make dependencies more transparent and avoid unintended feature changes from workspace updates
Changes