Skip to content

feat(pkg): add go-import page for traces/exporters/gcp - #229

Merged
aryanmehrotra merged 1 commit into
mainfrom
feat/go-import-gcp-traces-exporter
Oct 1, 2026
Merged

aryanmehrotra merged 1 commit into
mainfrom
feat/go-import-gcp-traces-exporter

Conversation

@aryanmehrotra

Copy link
Copy Markdown
Member

What

Adds the vanity-import route for gofr.dev/pkg/gofr/traces/exporters/gcp, the keyless Google Cloud trace exporter that shipped in gofr v1.62.0.

Why

It is its own Go module, but gofr.dev has no route for it, so go get cannot resolve the module path:

$ curl -s 'https://gofr.dev/pkg/gofr/traces/exporters/gcp?go-get=1' | grep -c go-import
0

All 27 other gofr submodules already resolve. I checked every go.mod under pkg/ at v1.62.0 against the live site; this is the only one missing.

Approach

Identical to #226 (metrics/exporters/gcp):

  • layout.jsx: the go-import / go-source metadata, byte-identical to metrics/exporters/gcp/layout.jsx (checked with cmp).
  • page.jsx: a PkgRedirect page, so the route renders and returns 200. docsPath points at /docs/guides/production-tracing, whose "Google Cloud (keyless)" section documents TRACE_EXPORTER=gcp.

Verification

next dev on this branch:

route status go-import
/pkg/gofr/traces/exporters/gcp?go-get=1 200 gofr.dev git https://github.com/gofr-dev/gofr
/pkg/gofr/metrics/exporters/gcp?go-get=1 (control) 200 same

Related

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.
@aryanmehrotra
aryanmehrotra merged commit d832a3b into main Oct 1, 2026
4 checks passed
@aryanmehrotra
aryanmehrotra deleted the feat/go-import-gcp-traces-exporter branch October 1, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant