mirror of
https://github.com/gotempsh/temps.git
synced 2026-04-24 22:06:00 +03:00
[GH-ISSUE #17] feat: Implement OpenTelemetry observability (traces, metrics, logs) #2
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/temps#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dviejokfs on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/gotempsh/temps/issues/17
Problem description
Temps currently has no built-in support for distributed tracing, metrics collection, or structured log aggregation from deployed applications. Users have no way to observe the internal behavior of their services — they can't see request latency breakdowns, trace cross-service calls, identify slow operations, or correlate logs with specific traces. This makes debugging production issues difficult and time-consuming.
Proposed solution
Add a complete OpenTelemetry (OTel) observability stack to Temps, covering the full pipeline from ingest to visualization:
Backend (
temps-otelcrate)tk_) withX-Temps-Project-Idheader, and deployment tokens (dt_) with automatic project/environment/deployment bindingPOST /otel/v1/{traces,metrics,logs}) and path-based routes (POST /otel/v1/{project_id}/{environment_id}/{deployment_id}/{traces,metrics,logs})Auth & Permissions
OtelReadandOtelWritepermissionsdeployment_idfield added to deployment tokens for full context propagationFrontend
Infrastructure
deployment_idtodeployment_tokenstableSpan.flagsandSpan.Link.flagschanged fromuint32tofixed32per OTLP v1.1.0+ specAlternatives considered
Additional context
temps-otelcrate follows the existing plugin architecture (TempsPlugintrait) and is registered at position 9.7 inconsole.rsTraceIdRatioBasedsampler)@dviejokfs commented on GitHub (Feb 28, 2026):
Closed by #18