-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(rust): add docs for logs #13945
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Bundle ReportChanges will increase total bundle size by 153 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-client-array-pushAssets Changed:
view changes for bundle: sentry-docs-server-cjsAssets Changed:
|
|
||
Once the feature is enabled on the SDK and the SDK is initialized, you can send logs by using the logging macros. | ||
The `sentry` crate exposes macros that support six different log levels: | ||
`logger_trace`, `logger_debug`, `logger_info`, `logger_warn`, `logger_error` and `logger_fatal`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to a technical limitation in macros visibility in Rust, these need to be exported at top-level.
We named them with a logger_
prefix to sort of follow the spec and prevent confusion with e.g. capture_error
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @lcian!!
DESCRIBE YOUR PR
Adds docs for new logs feature for Rust.
Also adds Rust to the list of available SDKs.
To be merged after 0.39 is released.
404s are unrelated
Closes getsentry/sentry-rust#826
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: