Skip to content

[BUG]: RabbitMQ Basic Properties overwritten to default values #6723

@johang88

Description

@johang88

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:

Reproduction Code

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions