OP changes
This commit is contained in:
		| @@ -52,8 +52,10 @@ namespace FwSearchApi | ||||
|             services.AddSwaggerGen(); | ||||
|  | ||||
|             services.AddOpenTelemetryTracing((builder) => builder | ||||
|                         //.SetResourceBuilder(ResourceBuilder.CreateDefault().AddService("TxSearchApi")) | ||||
|                         .AddAspNetCoreInstrumentation() | ||||
|                         .AddHttpClientInstrumentation() | ||||
|                         .AddEntityFrameworkCoreInstrumentation() | ||||
|                         .AddConsoleExporter() | ||||
|                         .AddOtlpExporter(otlpOptions => { | ||||
|                             otlpOptions.Endpoint = new Uri("http://192.168.178.44:8200"); | ||||
| @@ -73,7 +75,7 @@ namespace FwSearchApi | ||||
|  | ||||
|             app.UseSwagger(); | ||||
|  | ||||
|             app.UseElasticApm(_configuration, new EfCoreDiagnosticsSubscriber()); | ||||
|             //app.UseElasticApm(_configuration, new EfCoreDiagnosticsSubscriber()); | ||||
|  | ||||
|             app.UseSwaggerUI(c => | ||||
|             { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user