mirror of
https://github.com/mauricioabh/arbpulse.git
synced 2026-08-23 12:08:03 +00:00
chore(openspec): archive gate-sentry-spans and sync observability spec
Moves the completed change to openspec/changes/archive/ and creates the canonical openspec/specs/observability/spec.md. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
a5c83ee026
commit
70b4aa4e92
@@ -0,0 +1,16 @@
|
||||
## 1. Tracing gate
|
||||
|
||||
- [x] 1.1 Add `isTracingEnabled()` helper (reads `SENTRY_TRACING`, truthy = `"1"`/`"true"` case-insensitive) exported from the instrumentation layer
|
||||
- [x] 1.2 In `src/instrumentation/otel.ts`, return the no-op tracer unless both `SENTRY_DSN` and `SENTRY_TRACING` are truthy (keep `withSpan` signature and its `Sentry.captureException` in catch)
|
||||
- [x] 1.3 In `src/instrumentation/sentry.ts`, only set `tracesSampleRate` when tracing is enabled (omit it otherwise)
|
||||
|
||||
## 2. Documentation
|
||||
|
||||
- [x] 2.1 Add `SENTRY_TRACING` (default `false`) to `.env.example` with a note it gates spans for free-tier safety
|
||||
- [x] 2.2 Update the README observability section to describe the flag and default-off behavior
|
||||
|
||||
## 3. Verification
|
||||
|
||||
- [x] 3.1 `npm run typecheck` passes
|
||||
- [x] 3.2 `npm test` passes
|
||||
- [x] 3.3 Manually confirm: with `SENTRY_TRACING` unset, no spans are emitted; error capture path unaffected
|
||||
Reference in New Issue
Block a user