Skip to content

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

Closed
@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

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions