From 5d61343068aa11048673360499bd76f7bb1e63c3 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Wed, 13 May 2026 13:10:53 +0200 Subject: [PATCH] chore: gitignore *.local files at project level + strip phase residuals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously .claude/settings.local.json was only excluded by the user's global ~/.config/git/ignore — fresh clones of this template would have accidentally committed per-user Claude Code settings. Add an explicit project-level rule (*.local, *.local.*, **/settings.local.json) so the template ships with the protection baked in. Also strips two missed "phase" residuals from core-shared/instrumentation/otel/init-server-node.ts (the word leaked through the earlier sweep — generic future-work qualifier, not a setup-history reference, but cleaner without it). Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitignore | 5 +++++ .../src/instrumentation/otel/init-server-node.ts | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 1c2f0e4..2b029e0 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,11 @@ storybook-static .env.local .env.*.local +# Per-user local overrides (never commit — .claude/settings.local.json, etc.) +*.local +*.local.* +**/settings.local.json + # Testing coverage diff --git a/packages/core-shared/src/instrumentation/otel/init-server-node.ts b/packages/core-shared/src/instrumentation/otel/init-server-node.ts index ccac992..428f29c 100644 --- a/packages/core-shared/src/instrumentation/otel/init-server-node.ts +++ b/packages/core-shared/src/instrumentation/otel/init-server-node.ts @@ -29,7 +29,7 @@ export type InitOtelServerNodeOpts = { * - Registers Sentry span processor (via createSentryOtelBridge) when DSN is set. * - Registers Sentry log record processor when DSN is set. * - Registers an in-process MeterProvider (no exporter — Sentry metrics not yet - * wired; a future phase or vendor-specific exporter can add a MetricReader). + * wired; a future revision or vendor-specific exporter can add a MetricReader). * * Caller is responsible for `sdk.shutdown()` on process exit. */ @@ -64,8 +64,8 @@ export function initOtelServerNode(opts: InitOtelServerNodeOpts): NodeSDK { // In-process MeterProvider with no reader/exporter. Sentry metrics ingestion // is experimental in @sentry/opentelemetry 10.x and not wired here; metrics - // emit through the API but are not exported anywhere. A future phase can add - // a PeriodicExportingMetricReader when a vendor exporter is available. + // emit through the API but are not exported anywhere. Add a + // PeriodicExportingMetricReader when a vendor exporter is available. const metricReader = undefined; const sdk = new NodeSDK({