You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
We are getting a runtime NullReferenceException with our application. The error only occurs with the newest 10.19.x agent. It works fine with 10.17.x. This is due to the new MT auto instrumentation. We use MT but not all messages use the MT envelope.
See the partial stack trace below.
System.NullReferenceException: Object reference not set to an instance of an object. at NewRelic.Providers.Wrapper.MassTransit.MassTransitHelpers.GetQueueData(Uri sourceAddress) at NewRelic.Providers.Wrapper.MassTransit.NewRelicFilter.Send(ConsumeContext context, IPipe`1 next) at MassTransit.Middleware.TeeFilter`1.<>c__DisplayClass5_0.<<Send>g__SendAsync|1>d.MoveNext() in /codebuild/output/src3994/src/s3/00/src/MassTransit/Middleware/TeeFilter.cs:line 40 --- End of stack trace from previous location --- at MassTransit.Middleware.OutputPipeFilter`2.SendToOutput(IPipe`1 next, TOutput pipeContext) in /codebuild/output/src3994/src/s3/00/src/MassTransit/Middleware/OutputPipeFilter.cs:line 76 at MassTransit.Middleware.OutputPipeFilter`2.SendToOutput(IPipe`1 next, TOutput pipeContext) in /codebuild/output/src3994/src/s3/00/src/MassTransit/Middleware/OutputPipeFilter.cs:line 108 at MassTransit.Middleware.DynamicFilter`1.<>c__DisplayClass10_0.<<Send>g__SendAsync|0>d.MoveNext() in /codebuild/output/src3994/src/s3/00/src/MassTransit/Middleware/DynamicFilter.cs:line 89 --- End of stack trace from previous location ---
Expected Behavior
Essentially mass transit can support processing messages of different formats other than mass transit envelope. New relic should not assume it is of that format. In which case it means that sourceAddress in context could be null but the code assumes otherwise.
Your Environment
.NET Core 6
New Relic Agent 10.19.x
Ubuntu 20.04
Mass Transit
AWS SQS/SNS
The text was updated successfully, but these errors were encountered:
Description
We are getting a runtime NullReferenceException with our application. The error only occurs with the newest 10.19.x agent. It works fine with 10.17.x. This is due to the new MT auto instrumentation. We use MT but not all messages use the MT envelope.
See the partial stack trace below.
System.NullReferenceException: Object reference not set to an instance of an object. at NewRelic.Providers.Wrapper.MassTransit.MassTransitHelpers.GetQueueData(Uri sourceAddress) at NewRelic.Providers.Wrapper.MassTransit.NewRelicFilter.Send(ConsumeContext context, IPipe`1 next) at MassTransit.Middleware.TeeFilter`1.<>c__DisplayClass5_0.<<Send>g__SendAsync|1>d.MoveNext() in /codebuild/output/src3994/src/s3/00/src/MassTransit/Middleware/TeeFilter.cs:line 40 --- End of stack trace from previous location --- at MassTransit.Middleware.OutputPipeFilter`2.SendToOutput(IPipe`1 next, TOutput pipeContext) in /codebuild/output/src3994/src/s3/00/src/MassTransit/Middleware/OutputPipeFilter.cs:line 76 at MassTransit.Middleware.OutputPipeFilter`2.SendToOutput(IPipe`1 next, TOutput pipeContext) in /codebuild/output/src3994/src/s3/00/src/MassTransit/Middleware/OutputPipeFilter.cs:line 108 at MassTransit.Middleware.DynamicFilter`1.<>c__DisplayClass10_0.<<Send>g__SendAsync|0>d.MoveNext() in /codebuild/output/src3994/src/s3/00/src/MassTransit/Middleware/DynamicFilter.cs:line 89 --- End of stack trace from previous location ---
Expected Behavior
Essentially mass transit can support processing messages of different formats other than mass transit envelope. New relic should not assume it is of that format. In which case it means that sourceAddress in context could be null but the code assumes otherwise.
Your Environment
.NET Core 6
New Relic Agent 10.19.x
Ubuntu 20.04
Mass Transit
AWS SQS/SNS
The text was updated successfully, but these errors were encountered: