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(active-job): Prefix ::ActiveSupport when installing the instrumentation #1120

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

lavoiesl
Copy link
Contributor

@lavoiesl lavoiesl commented Aug 15, 2024

Otherwise, ActiveSupport ends up resolving to OpenTelemetry::Instrumentation::ActiveSupport.

OpenTelemetry::Instrumentation::Registry#install_instrumentation rescues the exception, so the prepend ends up being (somewhat) silently dropped.

This results in the patch not being adding, which causes OpenTelemetry.propagation.inject(job.__otel_headers) to raise, dropping the span

…ation

Otherwise, `ActiveSupport` ends up resolving to `OpenTelemetry::Instrumentation::ActiveSupport`.

`OpenTelemetry::Instrumentation::Registry#install_instrumentation` rescues the exception, so the prepend ends up being (somewhat) silently dropped.
@lavoiesl lavoiesl requested review from a team August 15, 2024 20:33
@lavoiesl lavoiesl changed the title fix(active-job) Prefix ::ActiveSupport when installing the instrumentation fix(active-job): Prefix ::ActiveSupport when installing the instrumentation Aug 15, 2024
@arielvalentin
Copy link
Collaborator

cc: @bensheldon

@arielvalentin arielvalentin merged commit c51c0ee into open-telemetry:main Aug 15, 2024
57 of 59 checks passed
@lavoiesl lavoiesl deleted the patch-1 branch August 15, 2024 21:54
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