diff --git a/docs/platforms/android/logs/index.mdx b/docs/platforms/android/logs/index.mdx index 62a533a4a77e94..7bfd275cffcbda 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 49c3ed812c5d0a..2fbfe98b0dab79 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 d7670fc0e1ef51..8c6dfa342bf3c8 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 77f29637f51d7c..e461a984eabf37 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 8d2099215e36b4..a2bf02ebc5be73 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 06e7a957349946..08b8ae4b06f8b5 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 8726e669e654af..78a03abe74313a 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 3e17e47f59a440..fb06c3b0170da8 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 8726e669e654af..78a03abe74313a 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/dart.mdx b/platform-includes/logs/integrations/dart.mdx index 11b8f31d35d029..2cf441806b2e7b 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 7dfdde786c31cb..cbc91c391bed56 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 0982684eb41a1c..dbda60ea9ed6d0 100644 --- a/platform-includes/logs/integrations/go.mdx +++ b/platform-includes/logs/integrations/go.mdx @@ -1,7 +1,8 @@ -### Supported libraries - -- [Slog](/platforms/go/guides/slog) -- [Logrus](/platforms/go/guides/logrus) +Available integrations: +
    +Slog +Logrus +
### `io.Writer` interface diff --git a/platform-includes/logs/integrations/java.mdx b/platform-includes/logs/integrations/java.mdx index de308b84eaee96..65d5a41653cc53 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 84807a4b247a7a..4418b820d6d99d 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/components/integrationLink.tsx b/src/components/integrationLink.tsx new file mode 100644 index 00000000000000..709305d4696d6c --- /dev/null +++ b/src/components/integrationLink.tsx @@ -0,0 +1,36 @@ +import type {ReactNode} from 'react'; + +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 = { + children: ReactNode; + href: string; +}; + +/** + * 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} +
  • + ); +} diff --git a/src/mdxComponents.ts b/src/mdxComponents.ts index 29cae613ee3fb2..77a0414d16773b 100644 --- a/src/mdxComponents.ts +++ b/src/mdxComponents.ts @@ -22,6 +22,7 @@ import {GitHubDomainChecker} from './components/githubDomainChecker'; import {GradleFeatureConfig} from './components/gradleFeatureConfig'; import {GradleUploadInstructions} from './components/gradleUploadInstructions'; import {GuideGrid} from './components/guideGrid'; +import {IntegrationListItem} from './components/integrationLink'; import {JsBundleList} from './components/jsBundleList'; import {LambdaLayerDetail} from './components/lambdaLayerDetail'; import {LinkWithPlatformIcon} from './components/linkWithPlatformIcon'; @@ -93,6 +94,7 @@ export function mdxComponents( Expandable, FeatureBadge, GuideGrid, + IntegrationListItem, JsBundleList, LambdaLayerDetail, Link: SmartLink,