Loading...
Loading...
Instrument a .NET application with the Elastic Distribution of OpenTelemetry (EDOT) .NET SDK for automatic tracing, metrics, and logs. Use when adding observability to a .NET service that has no existing APM agent.
npx skill4agent add elastic/agent-skills observability-edot-dotnet-instrumentElastic.OpenTelemetryOpenTelemetry.Instrumentation.AspNetCorebuilder.AddElasticOpenTelemetry()IHostApplicationBuilderProgram.csOTEL_SERVICE_NAMEOTEL_EXPORTER_OTLP_ENDPOINTapm-server:8200/intake/v2/eventsOTEL_EXPORTER_OTLP_HEADERS"Authorization=ApiKey <key>""Authorization=Bearer <token>"OTEL_TRACES_EXPORTEROTEL_METRICS_EXPORTEROTEL_LOGS_EXPORTERTracerProviderMeterProviderAddElasticOpenTelemetry()Elastic.Apm.*