Jason Woltje
|
6516843612
|
feat(#312): Implement core OpenTelemetry infrastructure
ci/woodpecker/push/woodpecker Pipeline failed
Complete the telemetry module with all acceptance criteria:
- Add service.version resource attribute from package.json
- Add deployment.environment resource attribute from env vars
- Add trace sampling configuration with OTEL_TRACES_SAMPLER_ARG
- Implement ParentBasedSampler for consistent distributed tracing
- Add comprehensive tests for SpanContextService (15 tests)
- Add comprehensive tests for LlmTelemetryDecorator (29 tests)
- Fix type safety issues (JSON.parse typing, template literals)
- Add security linter exception for package.json read
Test coverage: 74 tests passing, 85%+ coverage on telemetry module.
Fixes #312
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-02-04 12:52:20 -06:00 |
|
|
|
51e6ad0792
|
feat(#131): add OpenTelemetry tracing infrastructure
Implement comprehensive distributed tracing for HTTP requests and LLM
operations using OpenTelemetry with GenAI semantic conventions.
Features:
- TelemetryService: SDK initialization with OTLP HTTP exporter
- TelemetryInterceptor: Automatic HTTP request spans
- @TraceLlmCall decorator: LLM operation tracing
- GenAI semantic conventions for model/token tracking
- Graceful degradation when tracing disabled
Instrumented:
- All HTTP requests (automatic spans)
- OllamaProvider chat/chatStream/embed operations
- Token counts, model names, durations
Environment:
- OTEL_ENABLED (default: true)
- OTEL_SERVICE_NAME (default: mosaic-api)
- OTEL_EXPORTER_OTLP_ENDPOINT (default: localhost:4318)
Tests: 23 passing with full coverage
Fixes #131
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-31 12:55:11 -06:00 |
|