Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simaoribeiro committed Oct 17, 2023
1 parent 37cfe2c commit 2e2a718
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static Task OnConsumeCompleted(IMessageContext context)
{
if (context.Items.TryGetValue(ActivitySourceAccessor.ActivityString, out var value) && value is Activity activity)
{
activity?.Stop();
//activity?.Stop();

Check warning on line 60 in src/KafkaFlow.OpenTelemetry/OpenTelemetryConsumerEventsHandler.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/KafkaFlow.OpenTelemetry/OpenTelemetryConsumerEventsHandler.cs#L60

Remove this commented out code.
}

return Task.CompletedTask;
Expand All @@ -71,7 +71,7 @@ public static Task OnConsumeError(IMessageContext context, Exception ex)

activity?.AddEvent(exceptionEvent);

activity?.Stop();
//activity?.Stop();
}

return Task.CompletedTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static Task OnProducerCompleted(IMessageContext context)
{
if (context.Items.TryGetValue(ActivitySourceAccessor.ActivityString, out var value) && value is Activity activity)
{
activity?.Stop();
//activity?.Stop();

Check warning on line 70 in src/KafkaFlow.OpenTelemetry/OpenTelemetryProducerEventsHandler.cs

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/KafkaFlow.OpenTelemetry/OpenTelemetryProducerEventsHandler.cs#L70

Remove this commented out code.
}

return Task.CompletedTask;
Expand All @@ -81,7 +81,7 @@ public static Task OnProducerError(IMessageContext context, Exception ex)

activity?.AddEvent(exceptionEvent);

activity?.Stop();
//activity?.Stop();
}

return Task.CompletedTask;
Expand Down

0 comments on commit 2e2a718

Please sign in to comment.