File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
instrumentation/opentelemetry-instrumentation-urllib
src/opentelemetry/instrumentation/urllib Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ def _instrumented_open_call(
207
207
208
208
method = request .get_method ().upper ()
209
209
210
- span_name = f"HTTP { method } " .strip ()
210
+ span_name = method .strip ()
211
211
212
212
url = remove_url_credentials (url )
213
213
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ def test_basic(self):
124
124
span = self .assert_span ()
125
125
126
126
self .assertIs (span .kind , trace .SpanKind .CLIENT )
127
- self .assertEqual (span .name , "HTTP GET" )
127
+ self .assertEqual (span .name , "GET" )
128
128
129
129
self .assertEqual (
130
130
span .attributes ,
@@ -209,7 +209,7 @@ def test_response_code_none(self):
209
209
span = self .assert_span ()
210
210
211
211
self .assertIs (span .kind , trace .SpanKind .CLIENT )
212
- self .assertEqual (span .name , "HTTP GET" )
212
+ self .assertEqual (span .name , "GET" )
213
213
214
214
self .assertEqual (
215
215
span .attributes ,
You can’t perform that action at this time.
0 commit comments