File tree 2 files changed +5
-2
lines changed
instrumentation/opentelemetry-instrumentation-flask/tests
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
22
23
23
### Added
24
24
25
- - ` opentelemetry-instrumentation-flask ` Add http route to metric attributes
25
+ - ` opentelemetry-instrumentation-flask ` Add ` http. route ` to metric attributes
26
26
([ #2506 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2506 ) )
27
27
- ` opentelemetry-sdk-extension-aws ` Register AWS resource detectors under the
28
28
` opentelemetry_resource_detector ` entry point
Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ def expected_attributes_new(override_attributes):
85
85
return default_attributes
86
86
87
87
88
+ _server_duration_attrs_old_copy = _server_duration_attrs_old .copy ()
89
+ _server_duration_attrs_old_copy .append ("http.route" )
90
+
88
91
_expected_metric_names_old = [
89
92
"http.server.active_requests" ,
90
93
"http.server.duration" ,
@@ -95,7 +98,7 @@ def expected_attributes_new(override_attributes):
95
98
]
96
99
_recommended_metrics_attrs_old = {
97
100
"http.server.active_requests" : _server_active_requests_count_attrs_old ,
98
- "http.server.duration" : _server_duration_attrs_old ,
101
+ "http.server.duration" : _server_duration_attrs_old_copy ,
99
102
}
100
103
_recommended_metrics_attrs_new = {
101
104
"http.server.active_requests" : _server_active_requests_count_attrs_new ,
You can’t perform that action at this time.
0 commit comments