chore: gitignore *.local files at project level + strip phase residuals
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) <noreply@anthropic.com>
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -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
|
||||
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user