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

chore: disable otel #2244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore: disable otel #2244

wants to merge 1 commit into from

Conversation

NathanFlurry
Copy link
Member

Changes

Copy link
Member Author

NathanFlurry commented Mar 21, 2025


How to use the Graphite Merge Queue

Add 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.

Copy link

cloudflare-workers-and-pages bot commented Mar 21, 2025

Deploying rivet with  Cloudflare Pages  Cloudflare Pages

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

View logs

@NathanFlurry NathanFlurry changed the base branch from 03-12-chore_examples_add_asteroids_example to graphite-base/2244 March 21, 2025 21:56
@NathanFlurry NathanFlurry force-pushed the 03-21-chore_disable_otel branch from 247e69d to 0a69d99 Compare March 21, 2025 21:56
Copy link

cloudflare-workers-and-pages bot commented Mar 21, 2025

Deploying rivet-hub with  Cloudflare Pages  Cloudflare Pages

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

View logs

@NathanFlurry NathanFlurry changed the base branch from graphite-base/2244 to main March 21, 2025 21:56
@NathanFlurry NathanFlurry force-pushed the 03-21-chore_disable_otel branch 2 times, most recently from 6454908 to 2093976 Compare March 22, 2025 04:13
@NathanFlurry NathanFlurry force-pushed the 03-21-chore_disable_otel branch from 2093976 to e5b4079 Compare March 22, 2025 09:34
@NathanFlurry NathanFlurry marked this pull request as ready for review March 22, 2025 09:34
Copy link

@greptile-apps greptile-apps bot left a 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 and tracing 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

Comment on lines 19 to +21
[workspace.dependencies.tokio]
version = "1.40.0"
default-features = false
features = ["full"]
version = "1.44.0"
features = ["full", "tracing"]
Copy link

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

Comment on lines 189 to 193
pub struct OtelGuard {
tracer_provider: SdkTracerProvider,
meter_provider: SdkMeterProvider,
//tracer_provider: SdkTracerProvider,
//meter_provider: SdkMeterProvider,
//logger_provider: SdkLoggerProvider,
}
Copy link

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

Suggested change
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
Copy link

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

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.

1 participant