From d84d64a155dec78079a42dccbbc200404f1775d4 Mon Sep 17 00:00:00 2001 From: abdellah hariti Date: Mon, 3 Jun 2024 18:51:54 +0100 Subject: [PATCH] Cache instrumentation links (#10155) * fix: hide platforms with no cache custom instrumentation on cache instrumentation page * add node cache cache instrumentation redirect --- docs/product/performance/caches/index.mdx | 5 ----- src/middleware.ts | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/product/performance/caches/index.mdx b/docs/product/performance/caches/index.mdx index e045ccbb34e697..263dd987d472a4 100644 --- a/docs/product/performance/caches/index.mdx +++ b/docs/product/performance/caches/index.mdx @@ -37,10 +37,5 @@ If available, custom instrumentation is documented on an environment-by-environm - [Python SDK](/platforms/python/performance/instrumentation/custom-instrumentation/caches-module/) - [JavaScript SDKs](/platforms/javascript/guides/node/performance/instrumentation/custom-instrumentation/caches-module/) -- [Laravel SDK](/platforms/php/guides/laravel/performance/instrumentation/custom-instrumentation/) -- [Java SDK](/platforms/java/performance/instrumentation/custom-instrumentation/) -- [Ruby SDK](/platforms/ruby/performance/instrumentation/custom-instrumentation/) -- [.NET SDK](/platforms/dotnet/performance/instrumentation/custom-instrumentation/) -- [Symfony SDK](/platforms/php/guides/symfony/performance/instrumentation/custom-instrumentation/) To see what cache data can be set on spans, see the [Cache Module Developer Specification](https://develop.sentry.dev/sdk/performance/modules/caches/). diff --git a/src/middleware.ts b/src/middleware.ts index 5af0e3dd551715..cf2153b1c9004d 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -61,6 +61,10 @@ type Redirect = { }; const REDIRECTS: Redirect[] = [ + { + from: '/platforms/javascript/performance/instrumentation/custom-instrumentation/caches-module/', + to: '/platforms/javascript/guides/node/performance/instrumentation/custom-instrumentation/caches-module/', + }, { from: '/organization/integrations/github/', to: '/organization/integrations/source-code-mgmt/github/',