Loading...
Loading...
Migrate a .NET application from the classic Elastic APM .NET agent to the EDOT .NET SDK. Use when switching from Elastic.Apm.* packages to Elastic.OpenTelemetry.
npx skill4agent add elastic/agent-skills observability-edot-dotnet-migrateElastic.Apm.*Elastic.Apm.NetCoreAllUseAllElasticApm()AddAllElasticApm()ElasticApmappsettings.jsonELASTIC_APM_*Elastic.OpenTelemetryOpenTelemetry.Instrumentation.AspNetCorebuilder.AddElasticOpenTelemetry()IHostApplicationBuilderProgram.csOTEL_SERVICE_NAMEELASTIC_APM_SERVICE_NAMEElasticApm:ServiceNameOTEL_EXPORTER_OTLP_ENDPOINTELASTIC_APM_SERVER_URLSapm-server:8200/intake/v2/eventsOTEL_EXPORTER_OTLP_HEADERS"Authorization=ApiKey <key>""Authorization=Bearer <token>"ELASTIC_APM_SECRET_TOKENOTEL_TRACES_EXPORTEROTEL_METRICS_EXPORTEROTEL_LOGS_EXPORTERElastic.Apm.*