-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tracing instrumentation of Append & Subscribe operations
- Loading branch information
1 parent
1c555a4
commit 55db949
Showing
73 changed files
with
1,841 additions
and
770 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
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
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...ntStore.Client.Extensions.OpenTelemetry/EventStore.Client.Extensions.OpenTelemetry.csproj
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,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<RootNamespace>EventStore.Client.Extensions.OpenTelemetry</RootNamespace> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<PackageId>EventStore.Client.Extensions.OpenTelemetry</PackageId> | ||
<Description>Extensions used to facilitate instrumentation of the EventStore Client.</Description> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="OpenTelemetry.Api" Version="1.8.0" /> | ||
</ItemGroup> | ||
|
||
</Project> |
19 changes: 19 additions & 0 deletions
19
src/EventStore.Client.Extensions.OpenTelemetry/TracerProviderBuilderExtensions.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,19 @@ | ||
using EventStore.Client.Diagnostics; | ||
using JetBrains.Annotations; | ||
using OpenTelemetry.Trace; | ||
|
||
namespace EventStore.Client.Extensions.OpenTelemetry; | ||
|
||
/// <summary> | ||
/// Extension methods used to facilitate tracing instrumentation of the EventStore Client. | ||
/// </summary> | ||
[PublicAPI] | ||
public static class TracerProviderBuilderExtensions { | ||
/// <summary> | ||
/// Adds the EventStore client ActivitySource name to the list of subscribed sources on the <see cref="TracerProviderBuilder"/> | ||
/// </summary> | ||
/// <param name="builder"><see cref="TracerProviderBuilder"/> being configured.</param> | ||
/// <returns>The instance of <see cref="TracerProviderBuilder"/> to chain configuration.</returns> | ||
public static TracerProviderBuilder AddEventStoreClientInstrumentation(this TracerProviderBuilder builder) => | ||
builder.AddSource(EventStoreClientDiagnostics.InstrumentationName); | ||
} |
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
Oops, something went wrong.