-
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.
- Loading branch information
1 parent
5c80b3c
commit 29ce080
Showing
5 changed files
with
20 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,22 @@ | |
using System.Diagnostics; | ||
using System.Reflection; | ||
|
||
/// <summary> | ||
/// ActivitySource properties | ||
/// </summary> | ||
public static class ActivitySourceAccessor | ||
{ | ||
public const string ActivityString = "otel_activity"; | ||
public static readonly ActivitySource ActivitySource = new("KafkaFlow.OpenTelemetry", Version); | ||
/// <summary> | ||
/// The name of the OpenTelemetry Activity that is used as a key | ||
/// in MessageContext.Items dictionary | ||
/// </summary> | ||
public static string ActivityString = "otel_activity"; | ||
Check warning on line 15 in src/KafkaFlow.Abstractions/ActivitySourceAccessor.cs GitHub Actions / Test deployment
|
||
|
||
/// <summary> | ||
/// The ActivitySource name that is used in KafkaFlow | ||
/// </summary> | ||
public static ActivitySource ActivitySource = new("KafkaFlow.OpenTelemetry", Version); | ||
Check warning on line 20 in src/KafkaFlow.Abstractions/ActivitySourceAccessor.cs GitHub Actions / Test deployment
|
||
|
||
internal static readonly string Version = Assembly.GetExecutingAssembly().GetName().Version.ToString(); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
using System.Diagnostics; | ||
|
||
namespace KafkaFlow | ||
namespace KafkaFlow | ||
{ | ||
using System.Diagnostics; | ||
|
||
internal interface IActivityFactory | ||
{ | ||
|
||
public Activity Start(string topicName, ActivityOperationType activityOperationType, ActivityKind activityKind); | ||
} | ||
} |