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

Rake instrumentation relies on SDK method instead of API only #190

Closed
richardmcmillen opened this issue Nov 13, 2022 · 2 comments
Closed
Assignees
Labels
stale Marks an issue/PR stale

Comments

@richardmcmillen
Copy link
Contributor

Similarly to the ActiveJob issue and this discussion:

The ActiveJob instrumentation relies on an SDK method which is not part of the API: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/rake/lib/opentelemetry/instrumentation/rake/patches/task.rb#L32

The SDK implementation: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-sdk/v1.2.0/OpenTelemetry/SDK/Trace/TracerProvider.html#force_flush-instance_method

The API implementation:

Impact

Not much, as this code path is only ever hit when the instrumentation is installed from the registry, and this would typically only happen when using the SDK.

However, this is confusing as the gem depends on the API and not the SDK according to the gemspec: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/rake/opentelemetry-instrumentation-rake.gemspec

@ahayworth ahayworth self-assigned this Nov 14, 2022
@ahayworth
Copy link
Contributor

Waiting on the outcome of open-telemetry/opentelemetry-ruby#1401 and open-telemetry/opentelemetry-specification#2944 before taking action, but once a direction is established I can clean this up.

@github-actions
Copy link
Contributor

👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the keep label to hold stale off permanently, or do nothing. If you do nothing this issue will be closed eventually by the stale bot.

@github-actions github-actions bot added the stale Marks an issue/PR stale label Apr 27, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Marks an issue/PR stale
Projects
None yet
Development

No branches or pull requests

2 participants