otel spans not flushed in _after?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- aws, python
- Domain
- cloud, observability-sre
Research direction
Inspect datadog_wrapper's _after method and compare how it flushes ddtrace-generated spans with spans from opentelemetry-api. Reproduce an uncaught exception using Datadog Lambda Layer 86 and Python 3.11.14; the work is done when those spans reliably reach Datadog.
Written by the indexing model from the issue text.
Description
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
Paste here
- Dominant language
- Python
- Stars
- 102
- Forks
- 52
- Avg merge
- 5d 19h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DataDog/datadog-lambda-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
DataDog/datadog-lambda-python#758 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
DataDog/datadog-lambda-python#755 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
DataDog/datadog-lambda-python#688 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
DataDog/datadog-lambda-python#666 · 1 reaction ·
-
DataDog/datadog-lambda-python#633 · 2 comments · 1 assignee ·
All issues in DataDog/datadog-lambda-python
Similar issues
-
triage/confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100