File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
tracer/test/Datadog.Trace.ClrProfiler.IntegrationTests Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 77using System . Linq ;
88using System . Text . RegularExpressions ;
99using System . Threading . Tasks ;
10+ using Datadog . Trace . Configuration ;
1011using Datadog . Trace . RuntimeMetrics ;
1112using Datadog . Trace . TestHelpers ;
1213using FluentAssertions ;
@@ -43,6 +44,19 @@ public async Task MetricsDisabled()
4344 Assert . True ( requests . Count == 0 , "Received metrics despite being disabled. Metrics received: " + string . Join ( "\n " , requests ) ) ;
4445 }
4546
47+ #if NET6_0_OR_GREATER
48+ [ SkippableFact ]
49+ [ Trait ( "Category" , "EndToEnd" ) ]
50+ [ Trait ( "RunOnWindows" , "True" ) ]
51+ [ Trait ( "SupportsInstrumentationVerification" , "True" ) ]
52+ public async Task DiagnosticsMetricsApiSubmitsMetrics ( )
53+ {
54+ SetEnvironmentVariable ( ConfigurationKeys . RuntimeMetricsDiagnosticsMetricsApiEnabled , "1" ) ;
55+ EnvironmentHelper . EnableDefaultTransport ( ) ;
56+ await RunTest ( ) ;
57+ }
58+ #endif
59+
4660 [ SkippableFact ]
4761 [ Trait ( "Category" , "EndToEnd" ) ]
4862 [ Trait ( "RunOnWindows" , "True" ) ]
You can’t perform that action at this time.
0 commit comments