-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add producer and consumer enricher
- Loading branch information
1 parent
dc0882f
commit 807518b
Showing
6 changed files
with
163 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/KafkaFlow.OpenTelemetry/KafkaFlowInstrumentationOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Diagnostics; | ||
|
||
namespace KafkaFlow.OpenTelemetry; | ||
|
||
/// <summary> | ||
/// The options to be included in KafkaFlow instrumentation | ||
/// </summary> | ||
public class KafkaFlowInstrumentationOptions | ||
{ | ||
/// <summary> | ||
/// Gets or sets the Producer enricher | ||
/// </summary> | ||
public Action<Activity, IMessageContext> EnrichProducer { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the Consumer enricher | ||
/// </summary> | ||
public Action<Activity, IMessageContext> EnrichConsumer { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters