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

feat: Event objects #51

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

feat: Event objects #51

wants to merge 24 commits into from

Conversation

limbonaut
Copy link
Collaborator

@limbonaut limbonaut commented Dec 23, 2024

This PR implements:

  • SentryEvent objects, which can be used to create or modify an event, and a native implementation.
    • NativeEvent class -- implementation used with NativeSDK
  • Add SentrySDK.capture_event(event), SentrySDK.create_event(), SentrySDK.create_message_event() methods.
  • Unit tests for the SentryEvent class and SDK methods.

In future PRs, we can implement accessing tags, breadcrumbs, contexts, fingerprint, etc.

Dependency for:

@limbonaut limbonaut added the enhancement New feature or request label Dec 23, 2024
String get_last_event_id() const;

Ref<SentryEvent> create_event() const;
Ref<SentryEvent> create_message_event(const String &p_message, sentry::Level p_level = sentry::LEVEL_INFO, const String &p_logger = "");
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to expose logger? It's unclear what it's used for.

@limbonaut limbonaut marked this pull request as ready for review January 3, 2025 19:22
Copy link

github-actions bot commented Jan 8, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against ec07866

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

Successfully merging this pull request may close these issues.

1 participant