We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23844bb commit b575c7dCopy full SHA for b575c7d
packages/traceloop-sdk/traceloop/sdk/tracing/tracing.py
@@ -428,9 +428,10 @@ def init_instrumentations(
428
block_instruments: Optional[Set[Instruments]] = None,
429
):
430
block_instruments = block_instruments or set()
431
- instruments = instruments or set(
+ # explictly test for None since empty set is a False value
432
+ instruments = instruments if instruments is not None else set(
433
Instruments
- ) # Use all instruments if none specified
434
+ )
435
436
# Remove any instruments that were explicitly blocked
437
instruments = instruments - block_instruments
0 commit comments