Skip to content

Commit 259531b

Browse files
committed
Update fastapi and starlette tests
1 parent dc42bdd commit 259531b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py

+1
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def test_basic_metric_success(self):
235235
"net.host.port": 443,
236236
"http.status_code": 200,
237237
"http.target": "/foobar",
238+
"http.route": "/foobar",
238239
}
239240
expected_requests_count_attributes = {
240241
"http.method": "GET",

instrumentation/opentelemetry-instrumentation-starlette/tests/test_starlette_instrumentation.py

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def test_basic_post_request_metric_success(self):
163163
"http.flavor": "1.1",
164164
"http.host": "testserver",
165165
"http.method": "POST",
166+
"http.route": "/foobar",
166167
"http.scheme": "http",
167168
"http.server_name": "testserver",
168169
"http.status_code": 405,

0 commit comments

Comments
 (0)