Skip to content

docs(frontend): sync auto-configuration + apm client reference to the completed config contract - #891

Draft
Starefossen wants to merge 1 commit into
mainfrom
docs/frontend-config-contract-687
Draft

docs(frontend): sync auto-configuration + apm client reference to the completed config contract#891
Starefossen wants to merge 1 commit into
mainfrom
docs/frontend-config-contract-687

Conversation

@Starefossen

Copy link
Copy Markdown
Member

⚠️ Do not merge before nais/naiserator#687

The auto-configuration reference changes describe the completed generatedConfig payload (schemaVersion, app.namespace, environment, the nais.json sibling file) — none of which exists in clusters until nais/naiserator#687 merges and deploys per tenant. Merging early would repeat the drift this fixes: the page previously documented app.namespace, which naiserator never actually emitted.

What's in here

observability/frontend/reference/auto-configuration.md (gated on #687):

  • Payload updated: schemaVersion: 1, environment, versioned-contract note
  • New Generated JSON file section: nais.json mounted next to mountPath, initFromConfigUrl('/nais.json') consumption, cache-control guidance

observability/apm/reference/apm-client-api.md (already true as of @nais/apm v0.5.0 — can be split out and merged now if preferred):

  • Corrects the "injected by the platform" meta-tag claim → rendered by the app's server via the new <NaisMetaTags />/getNaisMetaTags() helpers
  • Resolution chain: NAIS_FRONTEND_TELEMETRY_COLLECTOR_URL, tenant fallback (cluster + hostname, tenant option), local-dev-mode vs loud-failure split, debug: true table
  • New API sections: initFromConfigUrl, fromNaisConfig, NaisMetaTags SSR helpers

Context: ADR-0001 in nais/apm, PRDs nais/grafana-apm-app#133 / #134.

… completed config contract

auto-configuration.md (blocked on nais/naiserator#687 — the payload
described here does not exist until that PR merges and deploys):
- schemaVersion + environment fields, versioned-contract note
- new 'Generated JSON file' section (nais.json sibling mount,
  initFromConfigUrl consumption, cache guidance)
- NOTE: this page previously documented app.namespace, which the
  generator did not actually emit until #687

apm-client-api.md (true as of @nais/apm v0.5.0):
- corrected the meta-tag claim: rendered by the app's own server
  (NaisMetaTags helpers), never injected by the platform
- resolution chain updated: NAIS_FRONTEND_TELEMETRY_COLLECTOR_URL,
  tenant fallback (cluster/hostname), dev-mode vs loud-failure split,
  debug resolution table
- new API docs: initFromConfigUrl, fromNaisConfig, NaisMetaTags SSR
  helpers; init options tenant + debug
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