This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
gRPC
editgRPC
editQuick start
editAutomatic instrumentation for gRPC can be enabled for both client-side and server-side gRPC calls.
Automatic instrumentation for ASP.NET Core server-side is built in to NuGet package
Automatic instrumentation can be enabled for the client-side by referencing Elastic.Apm.GrpcClient
package
and passing GrpcClientDiagnosticListener
to the AddElasticApm
method in case of ASP.NET Core
app.Services.AddElasticApm(new GrpcClientDiagnosticListener());
or passing GrpcClientDiagnosticSubscriber
to the Subscribe
method
Agent.Subscribe(new GrpcClientDiagnosticSubscriber());
Diagnostic events from Grpc.Net.Client
are captured as spans.