Skip to content

Commit 50f5d0c

Browse files
committed
wip
1 parent 1b92dcf commit 50f5d0c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/api/Elastic.Documentation.Api.Infrastructure/OpenTelemetryExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static TBuilder AddDocsApiOpenTelemetry<TBuilder>(
2727
SkipOtlpExporter = true, // Disable OTLP exporter
2828
SkipInstrumentationAssemblyScanning = true // Disable instrumentation assembly scanning for AOT
2929
};
30+
3031
_ = builder.AddElasticOpenTelemetry(options, edotBuilder =>
3132
{
3233
_ = edotBuilder

src/tooling/docs-builder/Http/DocumentationWebHost.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ IConfigurationContext configurationContext
4646
_ = builder.AddDocumentationServiceDefaults();
4747

4848
#if DEBUG
49-
// Add Elastic OpenTelemetry for local development
50-
// Set OTEL_EXPORTER_OTLP_ENDPOINT environment variable to send to local Elasticsearch
51-
// Example: export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:8200
52-
_ = builder.AddDocsApiOpenTelemetry();
53-
5449
builder.Services.AddElasticDocsApiUsecases("dev");
5550
#endif
5651

0 commit comments

Comments
 (0)