OpenTelemetry.Instrumentation.GrpcCore
1.0.0-beta.7
Prefix Reserved
dotnet add package OpenTelemetry.Instrumentation.GrpcCore --version 1.0.0-beta.7
NuGet\Install-Package OpenTelemetry.Instrumentation.GrpcCore -Version 1.0.0-beta.7
<PackageReference Include="OpenTelemetry.Instrumentation.GrpcCore" Version="1.0.0-beta.7" />
<PackageVersion Include="OpenTelemetry.Instrumentation.GrpcCore" Version="1.0.0-beta.7" />
<PackageReference Include="OpenTelemetry.Instrumentation.GrpcCore" />
paket add OpenTelemetry.Instrumentation.GrpcCore --version 1.0.0-beta.7
#r "nuget: OpenTelemetry.Instrumentation.GrpcCore, 1.0.0-beta.7"
#:package OpenTelemetry.Instrumentation.GrpcCore@1.0.0-beta.7
#addin nuget:?package=OpenTelemetry.Instrumentation.GrpcCore&version=1.0.0-beta.7&prerelease
#tool nuget:?package=OpenTelemetry.Instrumentation.GrpcCore&version=1.0.0-beta.7&prerelease
gRPC Core-based Client and Server Interceptors for OpenTelemetry .NET
| Status | |
|---|---|
| Stability | Beta |
| Code Owners | @IliaBrahinets, @pcwiese |
Adds OpenTelemetry instrumentation for gRPC Core-based client and server calls.
gRPC Core is the predecessor to ASP.NET Core gRPC. See https://github.com/grpc/grpc/tree/master/src/csharp
For ASP.NET Core gRPC client instrumentation see OpenTelemetry.Instrumentation.GrpcNetClient.
For ASP.NET Core gRPC server instrumentation is bundled within the AspNetCore instrumentation.
Each inbound or outbound gRPC call will generate a Span which follows the semantic RPC specification.
Installation
dotnet add package OpenTelemetry.Instrumentation.GrpcCore
Configuration
ASP.NET Core instrumentation example:
// Add OpenTelemetry and gRPC Core instrumentation
services.AddOpenTelemetry().WithTracing(x =>
{
x.AddGrpcCoreInstrumentation();
...
// Add exporter, etc.
});
Once configured, the OpenTelemetry SDK will listen for the activities created by the client and server interceptors.
Create a client interceptor:
var clientInterceptor = new ClientTracingInterceptor(new ClientTracingInterceptorOptions());
Create a server interceptor:
var serverInterceptor = new ServerTracingInterceptor(new ServerTracingInterceptorOptions());
Then simply add them as you would any other gRPC Core interceptor.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Google.Protobuf (>= 3.15.0)
- Grpc.Core.Api (>= 2.46.6)
- OpenTelemetry.Api (>= 1.13.1 && < 2.0.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on OpenTelemetry.Instrumentation.GrpcCore:
| Package | Downloads |
|---|---|
|
Miki.Common
Package Description |
|
|
Indiko.Blocks.Tracing.OpenTelemetry
Building Blocks Tracing OpenTelemetry |
|
|
Itmo.Dev.Platform.Grpc
Package Description |
|
|
Itmo.Dev.Platform.Observability
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-beta.7 | 1,357 | 10/23/2025 |
| 1.0.0-beta.6 | 1,050,428 | 5/21/2024 |
| 1.0.0-beta.5 | 1,011,647 | 3/25/2022 |
| 1.0.0-beta.4 | 336 | 3/18/2022 |