|
40 | 40 | using OpenTelemetry.Trace;
|
41 | 41 | using RabbitMQ.Client;
|
42 | 42 | using RabbitMQ.Client.Events;
|
43 |
| -using RabbitMQ.Client.OpenTelemetry; |
44 | 43 | using Xunit;
|
45 | 44 | using Xunit.Abstractions;
|
46 | 45 | using Xunit.Sdk;
|
@@ -90,7 +89,7 @@ public async Task TestPublisherAndConsumerActivityTags(bool useRoutingKeyAsOpera
|
90 | 89 | {
|
91 | 90 | var exportedItems = new List<Activity>();
|
92 | 91 | using (var tracer = Sdk.CreateTracerProviderBuilder()
|
93 |
| - .AddRabbitMQInstrumentation(new RabbitMQOpenTelemetryConfiguration()) |
| 92 | + .AddRabbitMQInstrumentation() |
94 | 93 | .AddInMemoryExporter(exportedItems)
|
95 | 94 | .Build())
|
96 | 95 | {
|
@@ -145,7 +144,7 @@ public async Task TestPublisherAndConsumerActivityTagsAsync(bool useRoutingKeyAs
|
145 | 144 | {
|
146 | 145 | var exportedItems = new List<Activity>();
|
147 | 146 | using (var tracer = Sdk.CreateTracerProviderBuilder()
|
148 |
| - .AddRabbitMQInstrumentation(new RabbitMQOpenTelemetryConfiguration()) |
| 147 | + .AddRabbitMQInstrumentation() |
149 | 148 | .AddInMemoryExporter(exportedItems)
|
150 | 149 | .Build())
|
151 | 150 | {
|
@@ -201,7 +200,7 @@ public async Task TestPublisherWithPublicationAddressAndConsumerActivityTagsAsyn
|
201 | 200 | {
|
202 | 201 | var exportedItems = new List<Activity>();
|
203 | 202 | using (var tracer = Sdk.CreateTracerProviderBuilder()
|
204 |
| - .AddRabbitMQInstrumentation(new RabbitMQOpenTelemetryConfiguration()) |
| 203 | + .AddRabbitMQInstrumentation() |
205 | 204 | .AddInMemoryExporter(exportedItems)
|
206 | 205 | .Build())
|
207 | 206 | {
|
@@ -258,7 +257,7 @@ public async Task TestPublisherWithCachedStringsAndConsumerActivityTagsAsync(boo
|
258 | 257 | {
|
259 | 258 | var exportedItems = new List<Activity>();
|
260 | 259 | using (var tracer = Sdk.CreateTracerProviderBuilder()
|
261 |
| - .AddRabbitMQInstrumentation(new RabbitMQOpenTelemetryConfiguration()) |
| 260 | + .AddRabbitMQInstrumentation() |
262 | 261 | .AddInMemoryExporter(exportedItems)
|
263 | 262 | .Build())
|
264 | 263 | {
|
@@ -316,7 +315,7 @@ public async Task TestPublisherAndBasicGetActivityTags(bool useRoutingKeyAsOpera
|
316 | 315 | {
|
317 | 316 | var exportedItems = new List<Activity>();
|
318 | 317 | using (var tracer = Sdk.CreateTracerProviderBuilder()
|
319 |
| - .AddRabbitMQInstrumentation(new RabbitMQOpenTelemetryConfiguration()) |
| 318 | + .AddRabbitMQInstrumentation() |
320 | 319 | .AddInMemoryExporter(exportedItems)
|
321 | 320 | .Build())
|
322 | 321 | {
|
|
0 commit comments