Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.0.0 breaks formatting for lambda #160

Open
dephiros opened this issue Aug 5, 2024 · 0 comments
Open

V2.0.0 breaks formatting for lambda #160

dephiros opened this issue Aug 5, 2024 · 0 comments

Comments

@dephiros
Copy link

dephiros commented Aug 5, 2024

We tried to update the library to 2.0.0 but run into an issue where event sent from lambda no longer get formatted correctly.

Previously we use SentryJSONProcessor which is updated to SentryProcessor
We configure Sentry per the doc here: https://github.com/kiwicom/structlog-sentry?tab=readme-ov-file#logging-as-json

Example of previous message as seen on sentry:

Message
process_scheduled_message.message_not_handled

After the update the message becomes

Message
{'event': 'process_scheduled_message.message_not_handled', 'dd.trace_id': '4813741850791478619', 'dd.span_id': '13971470814306166836', 'dd.env': 'production'}

Somehow the JSON now is interpreted as a string.

Appreciate your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant