Wrapper errors directly sent to stderr
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- observability-sre
Research direction
Start in datadog_lambda/wrapper.py at the cited lines 198, 284, and 348, where traceback.print_exc() sends wrapper errors to stderr. Trace how errors are handled there and replace the direct stderr behavior with the configurable logger requested in the issue; done means wrapper errors are sent to the logger rather than printed directly.
Written by the indexing model from the issue text.
Description
Expected Behavior
Logs being sent to logger, on which I can format and configure
Actual Behavior
Use of traceback.print_exc() as seen in: 1, 2, 3...
Steps to Reproduce the Problem
1.Only is needed to have any error in the wrapper that it can be seen
Specifications
- Datadog Lambda Layer version: 4.66.0
- Python version: 3.9.15
- Dominant language
- Python
- Stars
- 102
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
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 4/5 3-5 days Newbie friendliness 35/100
DataDog/datadog-lambda-python#682 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
DataDog/datadog-lambda-python#666 · 1 reaction ·
All issues in DataDog/datadog-lambda-python
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·