From 105ce6a92c3a1b494fb1131fc083908ebaec4747 Mon Sep 17 00:00:00 2001 From: KyleTryon Date: Wed, 18 Feb 2026 13:52:27 -0500 Subject: [PATCH 1/5] refactor: reorganize logging documentation across multiple platforms Removed the "Integrations" section from various platform logging documentation files and replaced it with "Other Logging Integrations" to enhance clarity and consistency. This change was applied to the Android, Dart, .NET, Go, Java, PHP, Python, React Native, and Ruby platforms. Additionally, updated the Go integrations file to change the heading from "Supported libraries" to "Available integrations" for better alignment with the new structure. --- docs/platforms/android/logs/index.mdx | 8 ++++---- docs/platforms/dart/common/logs/index.mdx | 8 ++++---- docs/platforms/dotnet/common/logs/index.mdx | 8 ++++---- docs/platforms/go/common/logs/index.mdx | 8 ++++---- docs/platforms/java/common/logs/index.mdx | 8 ++++---- docs/platforms/php/common/logs/index.mdx | 8 ++++---- docs/platforms/python/logs/index.mdx | 8 ++++---- docs/platforms/react-native/logs/index.mdx | 8 ++++---- docs/platforms/ruby/logs/index.mdx | 8 ++++---- platform-includes/logs/integrations/go.mdx | 2 +- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/docs/platforms/android/logs/index.mdx b/docs/platforms/android/logs/index.mdx index 62a533a4a77e9..7bfd275cffcbd 100644 --- a/docs/platforms/android/logs/index.mdx +++ b/docs/platforms/android/logs/index.mdx @@ -21,10 +21,6 @@ With Sentry Structured Logs, you can send text-based log information from your a -## Integrations - - - ## Options @@ -36,3 +32,7 @@ With Sentry Structured Logs, you can send text-based log information from your a ## Troubleshooting + +## Other Logging Integrations + + diff --git a/docs/platforms/dart/common/logs/index.mdx b/docs/platforms/dart/common/logs/index.mdx index 49c3ed812c5d0..2fbfe98b0dab7 100644 --- a/docs/platforms/dart/common/logs/index.mdx +++ b/docs/platforms/dart/common/logs/index.mdx @@ -19,10 +19,6 @@ With Sentry Structured Logs, you can send text-based log information from your a -## Integrations - - - ## Options @@ -34,3 +30,7 @@ With Sentry Structured Logs, you can send text-based log information from your a ## Troubleshooting + +## Other Logging Integrations + + diff --git a/docs/platforms/dotnet/common/logs/index.mdx b/docs/platforms/dotnet/common/logs/index.mdx index d7670fc0e1ef5..8c6dfa342bf3c 100644 --- a/docs/platforms/dotnet/common/logs/index.mdx +++ b/docs/platforms/dotnet/common/logs/index.mdx @@ -26,10 +26,6 @@ With Sentry Structured Logs, you can send text-based log information from your a -## Integrations - - - ## Options @@ -37,3 +33,7 @@ With Sentry Structured Logs, you can send text-based log information from your a ## Default Attributes + +## Other Logging Integrations + + diff --git a/docs/platforms/go/common/logs/index.mdx b/docs/platforms/go/common/logs/index.mdx index 77f29637f51d7..e461a984eabf3 100644 --- a/docs/platforms/go/common/logs/index.mdx +++ b/docs/platforms/go/common/logs/index.mdx @@ -21,10 +21,6 @@ With Sentry Structured Logs, you can send text-based log information from your a -## Integrations - - - ## Options @@ -38,3 +34,7 @@ If the `Debug` init option is set to true, calls to the `sentry.Logger` will als ## Default Attributes + +## Other Logging Integrations + + diff --git a/docs/platforms/java/common/logs/index.mdx b/docs/platforms/java/common/logs/index.mdx index 8d2099215e36b..a2bf02ebc5be7 100644 --- a/docs/platforms/java/common/logs/index.mdx +++ b/docs/platforms/java/common/logs/index.mdx @@ -21,10 +21,6 @@ With Sentry Structured Logs, you can send text-based log information from your a -## Integrations - - - ## Options @@ -32,3 +28,7 @@ With Sentry Structured Logs, you can send text-based log information from your a ## Default Attributes + +## Other Logging Integrations + + diff --git a/docs/platforms/php/common/logs/index.mdx b/docs/platforms/php/common/logs/index.mdx index 06e7a95734994..08b8ae4b06f8b 100644 --- a/docs/platforms/php/common/logs/index.mdx +++ b/docs/platforms/php/common/logs/index.mdx @@ -21,10 +21,6 @@ With Sentry Structured Logs, you can send text-based log information from your a -## Integrations - - - ## Options @@ -32,3 +28,7 @@ With Sentry Structured Logs, you can send text-based log information from your a ## Default Attributes + +## Other Logging Integrations + + diff --git a/docs/platforms/python/logs/index.mdx b/docs/platforms/python/logs/index.mdx index 8726e669e654a..78a03abe74313 100644 --- a/docs/platforms/python/logs/index.mdx +++ b/docs/platforms/python/logs/index.mdx @@ -21,10 +21,6 @@ With Sentry Structured Logs, you can send text-based log information from your a -## Integrations - - - ## Options @@ -32,3 +28,7 @@ With Sentry Structured Logs, you can send text-based log information from your a ## Default Attributes + +## Other Logging Integrations + + diff --git a/docs/platforms/react-native/logs/index.mdx b/docs/platforms/react-native/logs/index.mdx index 3e17e47f59a44..fb06c3b0170da 100644 --- a/docs/platforms/react-native/logs/index.mdx +++ b/docs/platforms/react-native/logs/index.mdx @@ -23,10 +23,6 @@ With Sentry Structured Logs, you can send text-based log information from your a -## Integrations - - - ## Options @@ -38,3 +34,7 @@ With Sentry Structured Logs, you can send text-based log information from your a ## Troubleshooting + +## Other Logging Integrations + + diff --git a/docs/platforms/ruby/logs/index.mdx b/docs/platforms/ruby/logs/index.mdx index 8726e669e654a..78a03abe74313 100644 --- a/docs/platforms/ruby/logs/index.mdx +++ b/docs/platforms/ruby/logs/index.mdx @@ -21,10 +21,6 @@ With Sentry Structured Logs, you can send text-based log information from your a -## Integrations - - - ## Options @@ -32,3 +28,7 @@ With Sentry Structured Logs, you can send text-based log information from your a ## Default Attributes + +## Other Logging Integrations + + diff --git a/platform-includes/logs/integrations/go.mdx b/platform-includes/logs/integrations/go.mdx index 0982684eb41a1..1e5210a00653b 100644 --- a/platform-includes/logs/integrations/go.mdx +++ b/platform-includes/logs/integrations/go.mdx @@ -1,4 +1,4 @@ -### Supported libraries +Available integrations: - [Slog](/platforms/go/guides/slog) - [Logrus](/platforms/go/guides/logrus) From 9119a29d2740cc4d37c1e1757e82d47c258b4719 Mon Sep 17 00:00:00 2001 From: KyleTryon Date: Wed, 18 Feb 2026 14:04:50 -0500 Subject: [PATCH 2/5] refactor: update integration listings to use new component format Replaced plain text links with the new IntegrationListItem component for the Dart, .NET, Go, Java, and PHP integration documentation. This change enhances consistency and improves the overall structure of the integration listings across multiple platforms. --- platform-includes/logs/integrations/dart.mdx | 4 +++- platform-includes/logs/integrations/dotnet.mdx | 10 ++++++---- platform-includes/logs/integrations/go.mdx | 7 ++++--- platform-includes/logs/integrations/java.mdx | 12 +++++++----- platform-includes/logs/integrations/php.mdx | 4 +++- src/mdxComponents.ts | 3 +++ 6 files changed, 26 insertions(+), 14 deletions(-) diff --git a/platform-includes/logs/integrations/dart.mdx b/platform-includes/logs/integrations/dart.mdx index 11b8f31d35d02..2cf441806b2e7 100644 --- a/platform-includes/logs/integrations/dart.mdx +++ b/platform-includes/logs/integrations/dart.mdx @@ -1,4 +1,6 @@ Available integrations: -- [Dart Logging package](/platforms/dart/integrations/logging/) +
    +Dart Logging package +
If there's an integration you would like to see, open a [new issue on GitHub](https://github.com/getsentry/sentry-dart/issues/new/choose). diff --git a/platform-includes/logs/integrations/dotnet.mdx b/platform-includes/logs/integrations/dotnet.mdx index 7dfdde786c31c..cbc91c391bed5 100644 --- a/platform-includes/logs/integrations/dotnet.mdx +++ b/platform-includes/logs/integrations/dotnet.mdx @@ -1,7 +1,9 @@ Available integrations: -- [ASP.NET Core](/platforms/dotnet/guides/aspnetcore/logs/) -- [.NET Multi-platform App UI (.NET MAUI)](/platforms/dotnet/guides/maui/logs/) -- [Microsoft.Extensions.Logging](/platforms/dotnet/guides/extensions-logging/logs/) -- [Serilog](/platforms/dotnet/guides/serilog/logs/) +
    +ASP.NET Core +.NET Multi-platform App UI (.NET MAUI) +Microsoft.Extensions.Logging +Serilog +
If there's an integration you would like to see, open a [new issue on GitHub](https://github.com/getsentry/sentry-dotnet/issues/new/choose). diff --git a/platform-includes/logs/integrations/go.mdx b/platform-includes/logs/integrations/go.mdx index 1e5210a00653b..efaa9cec03cca 100644 --- a/platform-includes/logs/integrations/go.mdx +++ b/platform-includes/logs/integrations/go.mdx @@ -1,7 +1,8 @@ Available integrations: - -- [Slog](/platforms/go/guides/slog) -- [Logrus](/platforms/go/guides/logrus) +
    +Slog +Logrus +
### `io.Writer` interface diff --git a/platform-includes/logs/integrations/java.mdx b/platform-includes/logs/integrations/java.mdx index de308b84eaee9..65d5a41653cc5 100644 --- a/platform-includes/logs/integrations/java.mdx +++ b/platform-includes/logs/integrations/java.mdx @@ -1,8 +1,10 @@ Available integrations: -- [Spring Boot using Logback](/platforms/java/guides/spring-boot/logging-frameworks/logback) -- [Spring Boot using Log4j2](/platforms/java/guides/spring-boot/logging-frameworks/log4j2) -- [Logback](/platforms/java/guides/logback/logs/) -- [Log4j2](/platforms/java/guides/log4j2/logs/) -- [JUL](/platforms/java/guides/jul/logs/) +
    +Spring Boot using Logback +Spring Boot using Log4j2 +Logback +Log4j2 +JUL +
If there's an integration you would like to see, open a [new issue on GitHub](https://github.com/getsentry/sentry-java/issues/new/choose). diff --git a/platform-includes/logs/integrations/php.mdx b/platform-includes/logs/integrations/php.mdx index 84807a4b247a7..4418b820d6d99 100644 --- a/platform-includes/logs/integrations/php.mdx +++ b/platform-includes/logs/integrations/php.mdx @@ -1,4 +1,6 @@ Available integrations: -- [Monolog](/platforms/php/integrations/monolog/#logs) +
    +Monolog +
If there's an integration you would like to see, open a [new issue on GitHub](https://github.com/getsentry/sentry-php/issues/new/choose). diff --git a/src/mdxComponents.ts b/src/mdxComponents.ts index 29cae613ee3fb..a260862077d1a 100644 --- a/src/mdxComponents.ts +++ b/src/mdxComponents.ts @@ -17,6 +17,7 @@ import {DevDocsCardGrid} from './components/devDocsCardGrid'; import DocImage from './components/docImage'; import {Expandable} from './components/expandable'; import {FeatureBadge} from './components/featureBadge'; +import {IntegrationLink, IntegrationListItem} from './components/integrationLink'; import {GitHubCodePreview} from './components/githubCodePreview'; import {GitHubDomainChecker} from './components/githubDomainChecker'; import {GradleFeatureConfig} from './components/gradleFeatureConfig'; @@ -93,6 +94,8 @@ export function mdxComponents( Expandable, FeatureBadge, GuideGrid, + IntegrationLink, + IntegrationListItem, JsBundleList, LambdaLayerDetail, Link: SmartLink, From 754cc0fbeb7f0fb1d32d83e5327326754169c823 Mon Sep 17 00:00:00 2001 From: KyleTryon Date: Wed, 18 Feb 2026 14:15:53 -0500 Subject: [PATCH 3/5] feat(logs): add IntegrationLink component for logs integration lists Hides the current page from the 'Other Logging Integrations' list on platform logs docs so users don't see a link to the page they're on. Co-Authored-By: Claude Co-authored-by: Cursor --- src/components/integrationLink.tsx | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/components/integrationLink.tsx diff --git a/src/components/integrationLink.tsx b/src/components/integrationLink.tsx new file mode 100644 index 0000000000000..cffb014563b08 --- /dev/null +++ b/src/components/integrationLink.tsx @@ -0,0 +1,46 @@ +import {serverContext} from 'sentry-docs/serverContext'; + +import {SmartLink} from './smartLink'; + +function normalizePath(p: string): string { + return p.replace(/\/+$/, '') || '/'; +} + +function isCurrentPage(href: string): boolean { + const {path} = serverContext(); + const currentPath = normalizePath('/' + path.join('/')); + const linkPath = normalizePath(href.startsWith('/') ? href : '/' + href); + return currentPath === linkPath; +} + +type Props = { + href: string; + children: React.ReactNode; +}; + +/** + * Renders a link that is hidden when the current page path matches href. + * Used in "Integrations" / "Other integrations" lists so the current page + * is not listed as an option. + */ +export function IntegrationLink({href, children}: Props) { + if (isCurrentPage(href)) { + return null; + } + return {children}; +} + +/** + * List item that is omitted when href is the current page. Use in integration + * lists so the current guide/page is not shown as an option. + */ +export function IntegrationListItem({href, children}: Props) { + if (isCurrentPage(href)) { + return null; + } + return ( +
  • + {children} +
  • + ); +} From 337ba8dc9a8c47ff9e2826f10d83cea1c0280cc9 Mon Sep 17 00:00:00 2001 From: "getsantry[bot]" <66042841+getsantry[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 19:17:33 +0000 Subject: [PATCH 4/5] [getsentry/action-github-commit] Auto commit --- src/components/integrationLink.tsx | 2 +- src/mdxComponents.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/integrationLink.tsx b/src/components/integrationLink.tsx index cffb014563b08..ba18558ec723f 100644 --- a/src/components/integrationLink.tsx +++ b/src/components/integrationLink.tsx @@ -14,8 +14,8 @@ function isCurrentPage(href: string): boolean { } type Props = { - href: string; children: React.ReactNode; + href: string; }; /** diff --git a/src/mdxComponents.ts b/src/mdxComponents.ts index a260862077d1a..6e45b16537a05 100644 --- a/src/mdxComponents.ts +++ b/src/mdxComponents.ts @@ -17,12 +17,12 @@ import {DevDocsCardGrid} from './components/devDocsCardGrid'; import DocImage from './components/docImage'; import {Expandable} from './components/expandable'; import {FeatureBadge} from './components/featureBadge'; -import {IntegrationLink, IntegrationListItem} from './components/integrationLink'; import {GitHubCodePreview} from './components/githubCodePreview'; import {GitHubDomainChecker} from './components/githubDomainChecker'; import {GradleFeatureConfig} from './components/gradleFeatureConfig'; import {GradleUploadInstructions} from './components/gradleUploadInstructions'; import {GuideGrid} from './components/guideGrid'; +import {IntegrationLink, IntegrationListItem} from './components/integrationLink'; import {JsBundleList} from './components/jsBundleList'; import {LambdaLayerDetail} from './components/lambdaLayerDetail'; import {LinkWithPlatformIcon} from './components/linkWithPlatformIcon'; From ee49932604a67f7a444e897508fa434b4ef561c2 Mon Sep 17 00:00:00 2001 From: KyleTryon Date: Wed, 18 Feb 2026 15:15:08 -0500 Subject: [PATCH 5/5] refactor: update Go integration links for consistency Modified the Go integration documentation to include updated paths for Slog and Logrus links, ensuring they point to the correct log sections. Additionally, removed the unused IntegrationLink component from the mdxComponents file to streamline imports. --- platform-includes/logs/integrations/go.mdx | 4 ++-- src/components/integrationLink.tsx | 16 +++------------- src/mdxComponents.ts | 3 +-- 3 files changed, 6 insertions(+), 17 deletions(-) diff --git a/platform-includes/logs/integrations/go.mdx b/platform-includes/logs/integrations/go.mdx index efaa9cec03cca..dbda60ea9ed6d 100644 --- a/platform-includes/logs/integrations/go.mdx +++ b/platform-includes/logs/integrations/go.mdx @@ -1,7 +1,7 @@ Available integrations:
      -Slog -Logrus +Slog +Logrus
    ### `io.Writer` interface diff --git a/src/components/integrationLink.tsx b/src/components/integrationLink.tsx index ba18558ec723f..709305d4696d6 100644 --- a/src/components/integrationLink.tsx +++ b/src/components/integrationLink.tsx @@ -1,3 +1,5 @@ +import type {ReactNode} from 'react'; + import {serverContext} from 'sentry-docs/serverContext'; import {SmartLink} from './smartLink'; @@ -14,22 +16,10 @@ function isCurrentPage(href: string): boolean { } type Props = { - children: React.ReactNode; + children: ReactNode; href: string; }; -/** - * Renders a link that is hidden when the current page path matches href. - * Used in "Integrations" / "Other integrations" lists so the current page - * is not listed as an option. - */ -export function IntegrationLink({href, children}: Props) { - if (isCurrentPage(href)) { - return null; - } - return {children}; -} - /** * List item that is omitted when href is the current page. Use in integration * lists so the current guide/page is not shown as an option. diff --git a/src/mdxComponents.ts b/src/mdxComponents.ts index 6e45b16537a05..77a0414d16773 100644 --- a/src/mdxComponents.ts +++ b/src/mdxComponents.ts @@ -22,7 +22,7 @@ import {GitHubDomainChecker} from './components/githubDomainChecker'; import {GradleFeatureConfig} from './components/gradleFeatureConfig'; import {GradleUploadInstructions} from './components/gradleUploadInstructions'; import {GuideGrid} from './components/guideGrid'; -import {IntegrationLink, IntegrationListItem} from './components/integrationLink'; +import {IntegrationListItem} from './components/integrationLink'; import {JsBundleList} from './components/jsBundleList'; import {LambdaLayerDetail} from './components/lambdaLayerDetail'; import {LinkWithPlatformIcon} from './components/linkWithPlatformIcon'; @@ -94,7 +94,6 @@ export function mdxComponents( Expandable, FeatureBadge, GuideGrid, - IntegrationLink, IntegrationListItem, JsBundleList, LambdaLayerDetail,