Skip to content

event["extra"] is deprecated #50

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

Closed
Lacrymology opened this issue Oct 15, 2021 · 1 comment
Closed

event["extra"] is deprecated #50

Lacrymology opened this issue Oct 15, 2021 · 1 comment

Comments

@Lacrymology
Copy link

We've forked and integrated structlog-sentry in our software, but the "additional data" field in sentry is deprecated, and in our instances only 10 keys show up.

We've updated the code to use a local scope's context instead (https://docs.sentry.io/platforms/python/enriching-events/scopes/#local-scopes), and we'd like to know whether you want a PR with that, and whether keeping the code that adds to event["extra"] is important for some reason. We've first added as_extra: bool, as_context: bool but that's weird because they should be exclusive. We're talking about changing it to send_as: Optional[Enum("context", "extra")], but that completely breaks the interface.

Tell us your preference and we can do that, or if it doesn't work for us, I'll backport our additions to keep backwards compatibility as necessary

@paveldedik
Copy link
Collaborator

Hi, I removed extra (and replaced it with context) in new 2.0.0b1 version. You can check the full list of changes here - #79 I still need to test the changes properly, that's why it is a beta right now.

But I think we can close this issue for now (If you think we should keep it open, feel free to reopen or create a new issue).

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

2 participants