-
Notifications
You must be signed in to change notification settings - Fork 62
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
Object reference error occurs when a MassTransit message is received without an envelope. #2055
Comments
Hi @reza-toorani, Thank you for the detailed bug report, especially for including thorough repro steps. I am hopeful that we can produce a fix quickly with this information. |
Hi @nr-ahemsath Do you have any workaround or estimate to deliver this fix? Best regards. |
@AdrianoRNascimento You can roll back your New Relic agent to version 10.18.0, before we added MassTransit instrumentation. Alternatively, if there are other features you need in 10.19.0+, you can remove the instrumentation files for MassTransit from your agent installation. These will be in a subfolder of your agent install folder named We hope to have a fix available next week. |
Thank you @nr-ahemsath However we are using the Docker (Linux) approach described here: Is it possible to define the agent version in this command?
|
Hi @nr-ahemsath |
@reza-toorani You can pin the version of the agent used in your containerized application by modifying the line in your Dockerfile that installs the agent to look like |
@nr-ahemsath |
Hi @nr-ahemsath |
@reza-toorani I'm sorry that didn't help. I'm not sure what could be going on, assuming that you rebuilt your containers and restarted your applications after making that change. Are you able to open up a support ticket with New Relic support? We probably need to get into some specific details of your environment in order to troubleshoot further, and for your privacy it would be better to do that through support than in public on GitHub. |
Hi @nr-ahemsath @reza-toorani
|
@nr-ahemsath I have created a support ticket. |
@AdrianoRNascimento Thank you for your message. Yes, I did exactly as you shared here. |
Description
If you are consuming a MassTransit message without MT envelope, GetQueueData method in https://github.com/newrelic/newrelic-dotnet-agent/blob/main/src/Agent/NewRelic/Agent/Extensions/Providers/Wrapper/MassTransit/MassTransitHelpers.cs throws an exception. It is looking for the source address in the message and expects '_' in the address name, but when the message is just raw JSON, it means no MT envelope and no source address.
Expected Behavior
It must be checked if there is a source address then split the parts.
Steps to Reproduce
Your Environment
NewRelic.Agent : 10.19.2
NewRelic.Agent.Api:10.19.2
NewRelic.LogEnrichers.Serilog : 1.2.0
.Net: 7.0
MassTransit: 8.1.0
Serilog:3.1.0
Serilog.Enrichers.GlobalLogContext:3.0.0
Serilog.Extensions.Hosting: 7.0.0
Serilog.Sinks.Async:1.5.0
Serilog.Sinks.Console:5.0.0
Additional context
For Maintainers Only or Hero Triaging this bug
Suggested Priority (P1,P2,P3,P4,P5): P1
Suggested T-Shirt size (S, M, L, XL, Unknown):
The text was updated successfully, but these errors were encountered: