Sentry Structured Logging for Python #4220
Replies: 2 comments
-
Edit: We added batching in |
Beta Was this translation helpful? Give feedback.
-
We’ve released https://github.com/getsentry/sentry-python/releases/tag/2.26.0 Please upgrade and give it a try! |
Beta Was this translation helpful? Give feedback.
-
Sentry is adding support for structured logs, so you can view and query your logs alongside your traces and errors—all in one place.
Note
To get early access to the Sentry logging product and to see how it works, see the announcement post.
To use the new Logging APIs to send application logs directly to Sentry, you'll have to upgrade to
2.25.1
of the Python SDK or higher.Logging is gated by an experimental option,
_experiments.enable_logs
.Then you can import and use methods from the
logger
namespace to send logs to Sentry.You can also configure the SDK to send logs via the Python logging standard library, using Sentry's
LoggingIntegration
.To filter logs, or update them before they are sent to Sentry, you can use the
_experiments.before_send_log
option.Beta Was this translation helpful? Give feedback.
All reactions