-
Notifications
You must be signed in to change notification settings - Fork 296
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
[Hangfire OTEL] create parent context if traceparent is available #421
[Hangfire OTEL] create parent context if traceparent is available #421
Conversation
|
...lemetry.Instrumentation.Hangfire/Implementation/HangfireInstrumentationJobFilterAttribute.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend to use the Propagators API for injecting and extracting context, instead of doing it manually.
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
Hello @cijothomas Could you please have a look ? Thanks. |
...lemetry.Instrumentation.Hangfire/Implementation/HangfireInstrumentationJobFilterAttribute.cs
Outdated
Show resolved
Hide resolved
…thub.com/marcindruzgala/opentelemetry-dotnet-contrib into hangfire/attach_server_job_to_the_client
...lemetry.Instrumentation.Hangfire/Implementation/HangfireInstrumentationJobFilterAttribute.cs
Outdated
Show resolved
Hide resolved
...lemetry.Instrumentation.Hangfire/Implementation/HangfireInstrumentationJobFilterAttribute.cs
Outdated
Show resolved
Hide resolved
This PR was marked stale due to lack of activity. It will be closed in 7 days. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@marcindruzgala Please fix the failing build. |
@fred2u As the component owner for Hangfire instrumentation, could you please review this PR? It would be great if you could approve it. Thanks! |
Please update the CHANGELOG as well. |
Done :) |
Codecov Report
@@ Coverage Diff @@
## main #421 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 163 163
Lines 4977 4996 +19
=====================================
- Misses 4977 4996 +19
|
@marcindruzgala Please create a PR to update the CHANGELOG if you want a newer package with these changes to be released: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/blob/main/CONTRIBUTING.md#how-to-request-for-release-of-package |
Changes
This change updates
OpenTelemetry.Instrumentation.Hangfire
package.Currently this instrumentation package will create new activity on the server side whenever job is being executed. But this trace is not attached to the trace from which the job was enqueued. This change provides that functionality - if
Activity.Current
is not null.