From 694f6ae0f8fb0ae3e1d847104d44f984da342b8e Mon Sep 17 00:00:00 2001 From: aryanmehrotra Date: Thu, 1 Oct 2026 15:07:45 +0530 Subject: [PATCH] feat(pkg): add go-import page for traces/exporters/gcp gofr.dev/pkg/gofr/traces/exporters/gcp is its own Go module (the keyless Google Cloud trace exporter shipped in gofr v1.62.0), but the vanity server has no route for it, so go get cannot resolve the module path. Same shape as the metrics/exporters/gcp page (#226): a layout carrying the go-import and go-source metadata, byte-identical to the existing layouts, and a PkgRedirect page so the route returns 200. docsPath points at the production tracing guide, which documents TRACE_EXPORTER=gcp. --- src/app/pkg/gofr/traces/exporters/gcp/layout.jsx | 10 ++++++++++ src/app/pkg/gofr/traces/exporters/gcp/page.jsx | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/app/pkg/gofr/traces/exporters/gcp/layout.jsx create mode 100644 src/app/pkg/gofr/traces/exporters/gcp/page.jsx diff --git a/src/app/pkg/gofr/traces/exporters/gcp/layout.jsx b/src/app/pkg/gofr/traces/exporters/gcp/layout.jsx new file mode 100644 index 0000000..e8e8598 --- /dev/null +++ b/src/app/pkg/gofr/traces/exporters/gcp/layout.jsx @@ -0,0 +1,10 @@ +export const metadata = { + other: { + 'go-import': 'gofr.dev git https://github.com/gofr-dev/gofr', + 'go-source': 'gofr.dev https://github.com/gofr-dev/gofr https://github.com/gofr-dev/gofr/tree/main{/dir} https://github.com/gofr-dev/gofr/blob/main{/dir}/{file}#L{line}' + }, +} + +export default function RootLayout({ children }) { + return children +} diff --git a/src/app/pkg/gofr/traces/exporters/gcp/page.jsx b/src/app/pkg/gofr/traces/exporters/gcp/page.jsx new file mode 100644 index 0000000..c5949ca --- /dev/null +++ b/src/app/pkg/gofr/traces/exporters/gcp/page.jsx @@ -0,0 +1,11 @@ +import { PkgRedirect } from '@/components/PkgRedirect' + + +export const metadata = { + title: 'gofr/traces/exporters/gcp — GoFr Go Package', + description: 'Go module path for gofr/traces/exporters/gcp. This redirect-only page sends visitors to the GoFr documentation for setup, configuration, and usage examples.', +} + +export default function Page() { + return +}