Skip to content

Commit 8b9edd1

Browse files
committed
Value of trace_configs might be None
1 parent cca90db commit 8b9edd1

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def instrumented_init(wrapped, instance, args, kwargs):
280280
if context_api.get_value(_SUPPRESS_INSTRUMENTATION_KEY):
281281
return wrapped(*args, **kwargs)
282282

283-
client_trace_configs = list(kwargs.get("trace_configs", ()))
283+
client_trace_configs = list(kwargs["trace_configs"] or [])
284284
client_trace_configs.extend(trace_configs)
285285

286286
trace_config = create_trace_config(

0 commit comments

Comments
 (0)