Skip to content

Commit

Permalink
renamed otel consumer and producer
Browse files Browse the repository at this point in the history
  • Loading branch information
simaoribeiro committed Oct 12, 2023
1 parent c458d2f commit 02572b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/KafkaFlow.OpenTelemetry/ExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,32 @@ public static IKafkaConfigurationBuilder AddOpenTelemetryInstrumentation(this IK
{
hub.MessageConsumeStarted.Subscribe(eventContext =>
{
return OpenTelemetryConsumerObserver.OnConsumeStarted(eventContext.MessageContext);
return OpenTelemetryConsumerEventsHandler.OnConsumeStarted(eventContext.MessageContext);
});

hub.MessageConsumeError.Subscribe(eventContext =>
{
return OpenTelemetryConsumerObserver.OnConsumeError(eventContext.MessageContext, eventContext.Exception);
return OpenTelemetryConsumerEventsHandler.OnConsumeError(eventContext.MessageContext, eventContext.Exception);
});

hub.MessageConsumeCompleted.Subscribe(eventContext =>
{
return OpenTelemetryConsumerObserver.OnConsumeCompleted(eventContext.MessageContext);
return OpenTelemetryConsumerEventsHandler.OnConsumeCompleted(eventContext.MessageContext);
});

hub.MessageProduceStarted.Subscribe(eventContext =>
{
return OpenTelemetryProducerObserver.OnProducerStarted(eventContext.MessageContext);
return OpenTelemetryProducerEventsHandler.OnProducerStarted(eventContext.MessageContext);
});

hub.MessageProduceError.Subscribe(eventContext =>
{
return OpenTelemetryProducerObserver.OnProducerError(eventContext.MessageContext, eventContext.Exception);
return OpenTelemetryProducerEventsHandler.OnProducerError(eventContext.MessageContext, eventContext.Exception);
});

hub.MessageProduceCompleted.Subscribe(eventContext =>
{
return OpenTelemetryProducerObserver.OnProducerCompleted(eventContext.MessageContext);
return OpenTelemetryProducerEventsHandler.OnProducerCompleted(eventContext.MessageContext);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using global::OpenTelemetry;
using global::OpenTelemetry.Context.Propagation;

internal static class OpenTelemetryConsumerObserver
internal static class OpenTelemetryConsumerEventsHandler
{
private static readonly TextMapPropagator Propagator = Propagators.DefaultTextMapPropagator;
private static readonly string ProcessString = "process";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using global::OpenTelemetry;
using global::OpenTelemetry.Context.Propagation;

internal static class OpenTelemetryProducerObserver
internal static class OpenTelemetryProducerEventsHandler
{
private static readonly TextMapPropagator Propagator = Propagators.DefaultTextMapPropagator;
private static readonly string PublishString = "publish";
Expand Down

0 comments on commit 02572b1

Please sign in to comment.