-
-
Notifications
You must be signed in to change notification settings - Fork 222
Sentry Structured Logging for .NET #4132
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
Comments
The idea is to:
I'll dare to say that no one in .NET will use "Sentry's logging API". I know I wouldn't. But that's not the point. The order above allows us to try/test things incrementally. All our current logging integrations do:
e.g: sentry-dotnet/src/Sentry.Extensions.Logging/SentryLogger.cs Lines 39 to 86 in 084e3b4
The crumb goes after, so that in a subsequent event, it will include the breadcrumb of the previous event. This works well for error monitoring. But with the new logging integration, we'll send all logs to Sentry. |
Sentry Structured Logging for .NET
|
Hey, Thanks for this feature that are you working on. Any plans to adapt opentelemetry for logs as you did for tracing? |
Hey @wondertalik - thanks for your interest! At the current moment we are focusing on adding logs support via the Sentry SDKs. We'll evaluate OpenTelemetry support in the future. Our logs schema is a superset of the OpenTelemetry schema, so we are already compatible with OpenTelemetry. |
There aren't yet/currently any docs for OpenTelemetry logging but it looks like even if you were using it, the instrumentation would still be done via I'm not sure if/why we'd ever want to add OpenTelemetry as a middle man in the process of piping logs from @wondertalik was your main interest in ensuring logs you captured via |
@jamescrosswell basically is unify setup when use sentry and opentelemetry together. Opentelemetry becomes a standart across all the clouds. The main benefit is posibility to send all telemetry to otel collector and via exporters resend where do i need trasparenty for all dev teams (services). I'm doing right now with tracing For example
|
I see. That's not how Sentry's OTel integration for tracing works either then... For tracing we have a SpanProcessor - so we capture OTel spans in real time and send these to Sentry (there's no exporter involved). So basically you can instrument your application with OTel for logging and tracing and have the logs/traces captured by Sentry, but OTel exporters aren't used at any point for either of those things. |
Is this going to count towards the quota? For reference, AppCenter didnt have cap or quota for the number log messages but had a retention policy of these logs for 30 days(IIRC). Apologies if its already documented somewhere and I have missed it. |
@Syed-RI check out this GH discussion for details about pricing/quota: getsentry/sentry#86804 (comment). Feel free to comment on that thread if you have any follow up concerns. |
Uh oh!
There was an error while loading. Please reload this page.
https://develop.sentry.dev/sdk/telemetry/logs/
Sentry is adding support for structured logging. Let's add it to the .NET SDK!
NLog
,Serilog
, etc.)The text was updated successfully, but these errors were encountered: