-
Notifications
You must be signed in to change notification settings - Fork 150
Closed
Milestone
Description
Tracer Version(s)
3.11.1
Operating system and platform
Linux
Instrumentation Mode
manual with nuget package
TFM
net9.0
Bug Report
If BasicPublishAsync
is called with a writable BasicProperties
then PopulateBasicPropertiesHeaders
in rabbitmq-dotnet-client will return null as no new object is created. In turn the instrumentation code will get a return value of null and create a new basic properties object resulting in all values having default values instead of the ones set by the caller.
Implementation in rabbitmq-dotnet-client: https://github.com/rabbitmq/rabbitmq-dotnet-client/blob/85fd42fc6e245dc68901802967acbccc216b5980/projects/RabbitMQ.Client/Impl/Channel.BasicPublish.cs#L190
Implementation in dd-trace:
Line 48 in f5e1c39
returnValue ??= CachedBasicPropertiesHelper<TReturn>.CreateHeaders(); |
Reproduction Code
No response