feat(core-shared): OtelTracer impl using @opentelemetry/api
Implements OtelTracer as ITracer replacement for SentryTracer. Uses @opentelemetry/api's trace.getTracer + startActiveSpan, maps span.op to a span attribute, catches exceptions via recordException + setStatus(ERROR), and filters null attribute values. Five Vitest tests covering name/attributes, nesting, exception recording, status mapping, and null filtering. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
"@sentry/react": { "optional": true }
|
||||
},
|
||||
"devDependencies": {
|
||||
"@opentelemetry/context-async-hooks": "^1.28.0",
|
||||
"@repo/core-eslint": "workspace:*",
|
||||
"@repo/core-testing": "workspace:*",
|
||||
"@repo/core-typescript": "workspace:*",
|
||||
|
||||
Reference in New Issue
Block a user