Skip to content

Commit

Permalink
Use default value for `RabbitMQActivitySource.UseRoutingKeyAsOperatio…
Browse files Browse the repository at this point in the history
…nName`

The default is `true`, anyway. No need to set it here.

Pointed out by @kielex in this comment:
#1533 (comment)
  • Loading branch information
lukebakken committed Jun 6, 2024
1 parent 3adee90 commit e54375d
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public static class OpenTelemetryExtensions
{
public static TracerProviderBuilder AddRabbitMQInstrumentation(this TracerProviderBuilder builder)
{
RabbitMQActivitySource.UseRoutingKeyAsOperationName = true;
RabbitMQActivitySource.ContextExtractor = OpenTelemetryContextExtractor;
RabbitMQActivitySource.ContextInjector = OpenTelemetryContextInjector;
builder.AddSource("RabbitMQ.Client.*");
Expand Down

0 comments on commit e54375d

Please sign in to comment.