mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-31 14:11:50 +08:00
test
This commit is contained in:
@ -125,9 +125,9 @@ def _instrument(tracer_provider=None, span_callback=None, name_callback=None):
|
||||
# https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/http.md#http-client
|
||||
method = method.upper()
|
||||
span_name = ""
|
||||
if name_callback:
|
||||
if name_callback is not None:
|
||||
span_name = name_callback()
|
||||
if not span_name:
|
||||
if not span_name or not isinstance(span_name, str):
|
||||
span_name = get_default_span_name(method)
|
||||
|
||||
recorder = RequestsInstrumentor().metric_recorder
|
||||
|
Reference in New Issue
Block a user