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

fix: otel resiliency #26857

Merged
merged 3 commits into from
Nov 14, 2024
Merged

fix: otel resiliency #26857

merged 3 commits into from
Nov 14, 2024

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Nov 13, 2024

Improving the breadth of collected data, and ensuring that the collected data is more likely to be successfully reported.

  • Use log crate in more places
  • Hook up log crate to otel
  • Switch to process-wide otel processors
  • Handle places that use process::exit

Also adds a more robust testing framework, with a deterministic tracing setting.

Refs: #26852

@devsnek devsnek added the ci-draft Run the CI on draft PRs. label Nov 13, 2024
Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

Still in need of tests.

@devsnek devsnek marked this pull request as ready for review November 13, 2024 19:26
Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

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

LGTM

runtime/lib.rs Outdated
Comment on lines 144 to 145
crate::ops::otel::flush();
std::process::exit(code);
Copy link
Member

Choose a reason for hiding this comment

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

Can you please add std::process::exit to disallowed methods in clippy.toml files so someone doesn't accidently use it?

@devsnek devsnek enabled auto-merge (squash) November 14, 2024 11:40
@devsnek devsnek merged commit 4e899d4 into main Nov 14, 2024
17 checks passed
@devsnek devsnek deleted the otel-resiliancy branch November 14, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-draft Run the CI on draft PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants