Sentry Structured Logging for Python #4220
AbhiPrasad
started this conversation in
Features / New Integrations / Ideas
Replies: 1 comment
-
Edit: We added batching in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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