OpenTelemetry Contributions


opentelemetry-python-contrib

What was the bug?

The OpenTelemetry Python SDK had a recursive deadlock triggered under concurrent tracing load. When multiple threads attempted to initialize tracing simultaneously, the SDK’s internal lock was acquired recursively, causing the process to hang indefinitely.

How was it fixed?

Diagnosed the root cause by tracing lock acquisition order across threads. Wrote a minimal reproducer to confirm the deadlock, then submitted a fix that was reviewed and merged upstream into the official opentelemetry-python-contrib repository.



Copyright 2026 Deepanshu Kartikey, all rights reserved — kartikey406@gmail.com