Logs in Sentry 🚀 #86804
Replies: 9 comments 14 replies
-
For us search isn't really that super important. Triggering alarms would be the main thing we would be interested in. |
Beta Was this translation helpful? Give feedback.
-
could you add the org |
Beta Was this translation helpful? Give feedback.
-
Hi, looking forward to seeing what you do with this feature 🤩 ! Can you add this to our org |
Beta Was this translation helpful? Give feedback.
-
looks great! Interested in the beta :) |
Beta Was this translation helpful? Give feedback.
-
Will you support mobile SDKs in the future? If so, will you also consider processing everything on-device, and allow us to configure settings such that logs are pushed only when there's an error, and not simply push all logs to Sentry? Use case: When there is an Example:
|
Beta Was this translation helpful? Give feedback.
-
Can’t wait, always wish this was integrated, it’s really an AIO now! Would love to participate in the beta ( |
Beta Was this translation helpful? Give feedback.
-
Hi, could you add |
Beta Was this translation helpful? Give feedback.
-
I'd love to try out logging as well @ Perhaps, some kind of pattern matching (regex?) alert would be really useful. |
Beta Was this translation helpful? Give feedback.
-
This is awesome! Very happy to see logging added to Sentry! |
Beta Was this translation helpful? Give feedback.
-
TL;DR
Sentry is adding support for structured logs, so you can view and query your logs alongside your traces and errors—all in one place.
Want early access? Comment below with your org slug or email [email protected] with your org slug, and we’ll get you set up.
For more details, keep reading or join the discussion below!
One of the biggest asks we've heard from our users is that you'd like to have the ability to send logs to Sentry, to have a single pane of glass for all your observability needs.
For those of you that have been with us for a while, you know we've always had some opinions about logging and how we’re focused on errors-first troubleshooting. However, we recognize that for many developers, log statements often provide valuable context for identifying and correcting problems.
To that end, we're happy to announce that we're adding support for logs in Sentry. Soon, you'll be able to send logs to Sentry and view them alongside traces & errors.
Read more details on how we're implementing support for logs, the "Sentry way" (or, if you'd like, Sentry's version). ⬇️
What can you do with Logs in Sentry?
Why Logs in Sentry?
When debugging, logs, traces, and errors work better together. Logs provide the granular context—like retries, API failures, and internal state—that spans and errors can miss. But in most tools today, logs live in a separate system, forcing you to switch between tools to piece together the full picture.
With logs in Sentry, everything is in one place. You can see logs right alongside your errors and traces—no more context switching, just faster debugging.
Getting started is just as easy as adding a
console.log
orlogger.info
. Our SDKs handle the heavy lifting, automatically linking your logs to traces and errors so you get the full context with minimal setup.Also - We're supporting structured logging that will support passing variables in a string template directly - We'll extract your variables and the template as attributes of the log that you can query
Supported SDKs: What’s Available and What’s Next
We’re kicking things off with JavaScript (including TypeScript and frameworks like NextJS, etc), and support for Python will be available in the next two weeks. More languages will follow as we expand logging support across our SDKs.
We’re also working on seamless integrations with popular logging frameworks. That means no major rewrites—just flip a switch at the SDK level, and your logs will start flowing into Sentry alongside your traces and errors.
Getting Access: Be the First to Try Logs in Sentry
We’re rolling out logs support to a limited set of customers first, and we’d love your feedback. If you want early access, reply to our GitHub discussion with your organization slug or email us at [email protected].
Here’s what to expect:
How to Start Sending Your JavaScript Logs
Once you have access you can follow these instructions
Install the right SDK version:
If you’re using a framework specific SDK then you can swap sentry/browser with sentry/nextjs or sentry/react
Start logging with the new APIs mentioned in these release instructions
What Feedback Are We Looking For?
Your input will help us refine our Logs as we work towards general availability.
Drop your thoughts below, or email us directly at [email protected]. We’re looking forward to hearing from you!
Beta Was this translation helpful? Give feedback.
All reactions