Skip to content

Commit

Permalink
Value of trace_configs might be None
Browse files Browse the repository at this point in the history
  • Loading branch information
estheruary committed Jan 22, 2023
1 parent cca90db commit 8b9edd1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def instrumented_init(wrapped, instance, args, kwargs):
if context_api.get_value(_SUPPRESS_INSTRUMENTATION_KEY):
return wrapped(*args, **kwargs)

client_trace_configs = list(kwargs.get("trace_configs", ()))
client_trace_configs = list(kwargs["trace_configs"] or [])
client_trace_configs.extend(trace_configs)

trace_config = create_trace_config(
Expand Down

0 comments on commit 8b9edd1

Please sign in to comment.