-
Notifications
You must be signed in to change notification settings - Fork 591
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
[OTel] Activity is not produced for BasicConsumeAsync on .NET Framework #1533
Comments
@Kielek thank you for investigating. Have you filed an issue here just for visibility or you expect that in addition to open-telemetry/opentelemetry-dotnet-instrumentation#3373, this client's OpenTelemetry integration would also have to change? If it's the latter, feel free to submit a PR :) |
I would consider this as a bug in RabbitMQ.Client. I cannot promise that I will have time for fixing it here. Linked PR was the easiest way to provide you application/case which is not working. |
@Kielek -
Let me know if you have any issues or questions. Thanks! |
@lukebakken, I have checked the behavior once more time. I am closing an issues, sorry for bothering you. |
Thank you for following up @Kielek!!! |
@lukebakken, one more thing from the code analysis. rabbitmq-dotnet-client/projects/RabbitMQ.Client.OpenTelemetry/TraceProviderBuilderExtensions.cs Line 15 in 3adee90
The property is set to true on the RabbitMQActivitySource class. I have had plan to create PR, but it will take ages to have CLA approval, could you please handle it? |
…nName` The default is `true`, anyway. No need to set it here. Pointed out by @kielex in this comment: #1533 (comment)
Describe the bug
Following code does not generate activity for
RabbitMQ.Client.Subscriber
activity source.Reproduction steps
RabbitMQ.Client.Subscriber
channel.BasicConsumeAsync
on .NET Framework 4.6.2, Activity is not generated forchannel.BasicConsumeAsync
.It is working fine for .NET6, .NET7 and .NET8.
channel.BasicGetAsync
generated proper activities.Expected behavior
Activity
RabbitMQ.Client.Subscriber
is generated also forchannel.BasicConsumeAsync
method on .NET Framework.Additional context
Found while working on introducing RabbitMQ.Client in OpenTelemetry .NET Automatic Instrumentation.
PR: open-telemetry/opentelemetry-dotnet-instrumentation#3373
The text was updated successfully, but these errors were encountered: