Expected Behavior
Spans from uncaught exceptions should still reliably reach datadog.
Actual Behavior
Many spans from uncaught errors are lost before they can be sent.
This needs further investigation, but I suspect it's because datadog_wrapper's _after method specifically flushes ddtrace-generated spans but not opentelemetry-api ones? Maybe it needs to also call TracerProvider.force_flush if applicable?
Specifications
- Datadog Lambda Layer version: 86
- Python version: 3.11.14
Stacktrace
Expected Behavior
Spans from uncaught exceptions should still reliably reach datadog.
Actual Behavior
Many spans from uncaught errors are lost before they can be sent.
This needs further investigation, but I suspect it's because datadog_wrapper's _after method specifically flushes ddtrace-generated spans but not opentelemetry-api ones? Maybe it needs to also call TracerProvider.force_flush if applicable?
Specifications
Stacktrace