Table of Contents

Class HostBuilderExtensions

Namespace
Elastic.Apm.NetCoreAll
Assembly
Elastic.Apm.NetCoreAll.dll
public static class HostBuilderExtensions
Inheritance
HostBuilderExtensions
Inherited Members

Methods

UseAllElasticApm(IHostBuilder)

Register Elastic APM .NET Agent with components in the container and enables Elastic.Apm.DiagnosticSource.HttpDiagnosticsSubscriber, Elastic.Apm.AspNetCore.DiagnosticListener.AspNetCoreDiagnosticSubscriber, Elastic.Apm.EntityFrameworkCore.EfCoreDiagnosticsSubscriber, Elastic.Apm.Instrumentations.SqlClient.SqlClientDiagnosticSubscriber, Elastic.Apm.Elasticsearch.ElasticsearchDiagnosticsSubscriber. Elastic.Apm.GrpcClient.GrpcClientDiagnosticSubscriber, Elastic.Apm.Azure.ServiceBus.AzureMessagingServiceBusDiagnosticsSubscriber, Elastic.Apm.Azure.ServiceBus.MicrosoftAzureServiceBusDiagnosticsSubscriber, Elastic.Apm.Azure.Storage.AzureBlobStorageDiagnosticsSubscriber, Elastic.Apm.Azure.Storage.AzureQueueStorageDiagnosticsSubscriber, Elastic.Apm.Azure.Storage.AzureFileShareStorageDiagnosticsSubscriber, Elastic.Apm.Azure.CosmosDb.AzureCosmosDbDiagnosticsSubscriber, and Elastic.Apm.MongoDb.MongoDbDiagnosticsSubscriber.

[Obsolete("This extension is maintained for backward compatibility. We recommend registering the agent via the IServiceCollection using the AddAllElasticApm extension method instead.")]
public static IHostBuilder UseAllElasticApm(this IHostBuilder builder)

Parameters

builder IHostBuilder

Builder.

Returns

IHostBuilder