File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
tests/opentelemetry-docker-tests/tests/django Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,25 @@ def test_duration_metrics_exemplars(self):
110110 if duration_metric :
111111 break
112112
113+ self .assertGreater (
114+ len (metric_names ),
115+ 0 ,
116+ "No metrics were generated" ,
117+ )
118+ self .assertTrue (
119+ any (
120+ name
121+ in ["http.server.request.duration" , "http.server.duration" ]
122+ for name in metric_names
123+ ),
124+ f"Expected duration metric not found. Available metrics: { metric_names } " ,
125+ )
126+ self .assertIn (
127+ "http.server.active_requests" ,
128+ metric_names ,
129+ f"Expected active_requests metric not found. Available metrics: { metric_names } " ,
130+ )
131+
113132 self .assertIsNotNone (duration_metric )
114133 data_points = list (duration_metric .data .data_points )
115134 self .assertTrue (len (data_points ) > 0 )
You can’t perform that action at this time.
0 commit comments