-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade exception tags in otel (#476)
Change how the exceptions are being recorded in otel activities to be in accordance with the official documentation. Make the KafkaFlow ActivitySource name public so the users of manual instrumentation can easily refer to without having to type it.
- Loading branch information
1 parent
21db5e3
commit 06fcddf
Showing
5 changed files
with
31 additions
and
29 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
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,19 @@ | ||
namespace KafkaFlow.OpenTelemetry | ||
Check warning on line 1 in src/KafkaFlow.OpenTelemetry/KafkaFlowInstrumentation.cs GitHub Actions / build
|
||
{ | ||
using System.Reflection; | ||
|
||
/// <summary> | ||
/// KafkaFlow OTEL instrumentation properties | ||
/// </summary> | ||
public static class KafkaFlowInstrumentation | ||
{ | ||
internal static readonly AssemblyName AssemblyName = typeof(KafkaFlowInstrumentation).Assembly.GetName(); | ||
internal static readonly string Version = AssemblyName.Version.ToString(); | ||
|
||
/// <summary> | ||
/// ActivitySource name to be used when adding | ||
/// KafkaFlow as source to an OTEL listener | ||
/// </summary> | ||
public static readonly string ActivitySourceName = AssemblyName.Name; | ||
} | ||
} |
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