Skip to content

docs(dotnet/logs): add Logs for the .NET SDK #14583

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Flash0ver
Copy link
Member

DESCRIBE YOUR PR

Tell us what you're changing and why. If your PR resolves an issue, please link it so it closes automatically.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

EXTRA RESOURCES

Copy link

vercel bot commented Aug 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2025 7:06pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
develop-docs ⬜️ Ignored (Inspect) Visit Preview Aug 8, 2025 7:06pm

@codeowner-assignment codeowner-assignment bot requested a review from a team August 7, 2025 15:00
@bruno-garcia
Copy link
Member

Oh it's draft, sorry I might have jumped the gun tagging @AbhiPrasad and @cleptric here

Copy link

codecov bot commented Aug 7, 2025

Bundle Report

Changes will increase total bundle size by 2.19kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 9.85MB -6 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 12.38MB 2.19kB (0.02%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.77MB -0.0%
../instrumentation.js -3 bytes 1.1MB -0.0%
9523.js -3 bytes 1.08MB -0.0%
../app/[[...path]]/page.js.nft.json 734 bytes 744.38kB 0.1%
../app/platform-redirect/page.js.nft.json 734 bytes 744.29kB 0.1%
../app/sitemap.xml/route.js.nft.json 734 bytes 741.77kB 0.1%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
server/middleware-*.js -5.55kB 1.0kB -84.74%
static/YtlMMx9uvgLJIUGjhjGOY/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/YtlMMx9uvgLJIUGjhjGOY/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/9rWfUVDgm8OYQEgCqpNwb/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/9rWfUVDgm8OYQEgCqpNwb/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

title: Set Up Logs
sidebar_title: Logs
description: "Structured logs allow you to send, view and query logs sent from your applications within Sentry."
sidebar_order: 5600
Copy link
Member Author

@Flash0ver Flash0ver Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: order

We're inconsistent with the order for SDKs that have both Crons and Logs

  • Logs before Crons: Go, PHP
  • Crons before Logs: Java, Python, Ruby

Where should we put it?
Does it matter?
@AbhiPrasad

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not worry about this for now, I'll just merge what we have here.

I raised a thread in slack to chat more about this: https://sentry.slack.com/archives/C081M1KEQ0L/p1754917568834039. Once we make a decision there, I'll leave another comment here about what we are going to change. I'll own fixing the order here.

<PlatformSection supported={["dotnet.aspnetcore, dotnet.azure-functions-worker, dotnet.blazor-webassembly, dotnet.extensions-logging, dotnet.maui"]}>

Additionally, when enabled and initialized, the SDK registers a [ILoggerProvider](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.iloggerprovider)
that allows sending logs to Sentry via [ILogger<T>](https://learn.microsoft.com/dotnet/api/microsoft.extensions.logging.ilogger-1) instances resolved through _.NET dependency injection_.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: < and > are not supported within link text and will fail the include to parse/render

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants