Skip to content

Conversation

solnic
Copy link
Collaborator

@solnic solnic commented Aug 1, 2025

This enables installing sentry in apps with old
opentelemetry libs, that are not compatible with
tracing, in which case tracing is simply not
loaded and cannot be used as a feature.

Closes #928

@solnic solnic linked an issue Aug 1, 2025 that may be closed by this pull request
@solnic solnic force-pushed the 928-cannot-upgrade-to-sentry-110-wo-tracing-because-of-otel-dependencies branch 6 times, most recently from c48c07f to 409fcae Compare August 1, 2025 11:40
@solnic solnic force-pushed the 928-cannot-upgrade-to-sentry-110-wo-tracing-because-of-otel-dependencies branch from 0bf8334 to aca525b Compare August 1, 2025 11:56
solnic added 4 commits August 1, 2025 11:57
This enables installing sentry in apps with old
opentelemetry libs, that are not compatible with
tracing, in which case tracing is simply not
loaded and cannot be used as a feature.

Closes #928
@solnic solnic force-pushed the 928-cannot-upgrade-to-sentry-110-wo-tracing-because-of-otel-dependencies branch from aca525b to e8fde4f Compare August 1, 2025 11:57
@solnic solnic marked this pull request as ready for review August 1, 2025 11:58
Copy link
Member

@sl0thentr0py sl0thentr0py left a comment

Choose a reason for hiding this comment

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

very nice. can we add a logger warning in init if traces_sample_rate is set and the dependencies are not satisfied?

@solnic solnic requested a review from sl0thentr0py August 1, 2025 14:53
Copy link
Member

@sl0thentr0py sl0thentr0py left a comment

Choose a reason for hiding this comment

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

ty! :shipit:

@solnic solnic merged commit 913ecff into master Aug 12, 2025
11 of 12 checks passed
@solnic solnic deleted the 928-cannot-upgrade-to-sentry-110-wo-tracing-because-of-otel-dependencies branch August 12, 2025 10:50
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.

Cannot upgrade to Sentry 11.0 (w/o tracing) because of OTel dependencies
2 participants