Logs in Sentry 🚀 - Open Beta #86804
Replies: 68 comments 108 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.
-
Could |
Beta Was this translation helpful? Give feedback.
-
This is really nice to see. Is this feature intended to only collect logs from the things integrated with the Sentry SDK? Or are there plans to ultimately support log shipping from other sources into the Sentry UI, too? |
Beta Was this translation helpful? Give feedback.
-
Please let me know if we can get some access at the slug qliktechnologies :) |
Beta Was this translation helpful? Give feedback.
-
Will it also be available in a self-hosted version? |
Beta Was this translation helpful? Give feedback.
-
Sounds great! Can we use it from sentry-native? 🙏 |
Beta Was this translation helpful? Give feedback.
-
would love to try this out with our team! |
Beta Was this translation helpful? Give feedback.
-
If you're interested in log drain support, please reach out via this GitHub issue. Thanks! |
Beta Was this translation helpful? Give feedback.
-
I don't see any details on the pricing. I would love to have a unified view across Sentry and our logs. But I can't make the case for it without knowing the cost. |
Beta Was this translation helpful? Give feedback.
-
Will there be an API released with this as well? We have a Zig backend server that will likely never have an SDK made. |
Beta Was this translation helpful? Give feedback.
-
Is there any reason the Logs option would not be available on the UI? I see the plans above didn't mention Enterprise. Are logs not available for Enterprise plans? |
Beta Was this translation helpful? Give feedback.
-
How long are logs retained for? |
Beta Was this translation helpful? Give feedback.
-
with this in django's settings.py, logs from loguru do not show up in sentry's logs, but errors from loguru logs are tracked in issues properly. Is there anything I missed?
|
Beta Was this translation helpful? Give feedback.
-
Need something more like MDC. In our case, server-side, we use asyncLocalStorage.set('userId', userId) and 'clickId' from http header from GUI and 'companyId', and svrTxId and so much more. ALLLLL of our logs are simply log.info("some test"); and behind the scenes the logger reads in the context(in java, you can google MDC). In typescript, asyncLocalStorage is used to sneak context past to wire up the call into GCP logging. So on GCP, we simply RIGHT click a [email protected] (userId) in some log and choose 'show mathcing entries' and it filters all logs to that user OR BETTER, we use clickId to see his one transaction. spanIds are not always there so we could never use that. I still need to debug how spans work as I believe there should always be one(when one span ends, another shoudl begin but does not with angular sentry). We invented clickId as the closest thing in angular changing every time there is a click event, tab event or enter event as the main things for OUR application as this is 99% true in a business app but not a gaming app where mouse move may trigger, etc. clickID for us always exists as first page load, we set it to something and after that it swaps only with clicks. Anyways, GCP is far better than sentry logging here though it would be GREAT if sentry did this client and server so you could click clickId and see all server and client logs in line and in order. Currently, we just swap between each. |
Beta Was this translation helpful? Give feedback.
-
is it possible to implement some api to send logs from vector? https://vector.dev/ |
Beta Was this translation helpful? Give feedback.
-
We have a .NET MAUI Project and would like to opt into the Beta to explore. Is there any way this can be requested ? @AbhiPrasad @jamescrosswell |
Beta Was this translation helpful? Give feedback.
-
What are the current languages supported? |
Beta Was this translation helpful? Give feedback.
-
To me it would be a cool feature if only the last n minutes/seconds or the last n logs before an error are collected. Ie, on client side cache the logs, and only send them to the server if an error (or event) happens. Alternatively, retain only the logs on the server that are "close" to an error. This would really reduce the load on self-hosted instances. |
Beta Was this translation helpful? Give feedback.
-
Logs were working smoothly until 17th of may when they suddenly stopped working for us (in mutliple projects). Is there any known issue? |
Beta Was this translation helpful? Give feedback.
-
Will it be possible to query the logs in Sentry via an API? |
Beta Was this translation helpful? Give feedback.
-
Is there a concept of sessions with this feature? Also, how long do these logs stay available? |
Beta Was this translation helpful? Give feedback.
-
Sharing a bunch of product updates that shipped recently ! Support for PHP Logs: See the SDK instructions here Infinite Scrolling: No more pagination, scroll your logs till the end and jump back to the top with a click: ![]() Improved Timestamps: You can see log timestamps in your preferred timezones, UTC and more ![]() |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.
You can find the SDK instructions to send logs here:
JavaScript SDK instructions here.
Python SDK instructions here.
See other supported SDKs here
Just head to Explore->Logs to view your logs !
We're working on supporting more SDKs and will keep this discussion updated as we iterate. 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.
Try Logs in Sentry
Just head to Explore->Logs to view your Logs. You can get started with sending Logs by following SDK instructions here
We'll be actively adding support for more SDKs over the coming weeks, but if you want to see a specific SDK prioritized, please leave a comment!
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