File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
dotnet/src/dotnetcore/Providers/OpenTelemetry/OpenTelemetryAWSOtel Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using GeneXus . Services ;
23using GeneXus . Services . OpenTelemetry ;
34using Microsoft . Extensions . DependencyInjection ;
45using OpenTelemetry ;
5- using OpenTelemetry . Trace ;
66using OpenTelemetry . Contrib . Extensions . AWSXRay . Trace ;
7- using GeneXus . Services ;
8- using GeneXus . Services . Common ;
9- using GeneXus . Diagnostics ;
7+ using OpenTelemetry . Metrics ;
8+ using OpenTelemetry . Trace ;
109
1110namespace GeneXus . OpenTelemetry . AWS
1211{
@@ -33,6 +32,10 @@ public bool InstrumentAspNetCoreApplication(IServiceCollection _)
3332 . AddGxAspNetInstrumentation ( )
3433 . Build ( ) ;
3534
35+ Sdk . CreateMeterProviderBuilder ( )
36+ . AddGxMeterAspNetInstrumentation ( )
37+ . Build ( ) ;
38+
3639 Sdk . SetDefaultTextMapPropagator ( new AWSXRayPropagator ( ) ) ;
3740
3841 return true ;
You can’t perform that action at this time.
0 commit comments