Skip to main content

OpenTelemetry Tracing Reference

All backend spans are created via the OpenTelemetry SDK using otel.Tracer(observability.TracerName). Traces are exported to Tempo via OTLP gRPC (port 4317) and can be visualized in Grafana Explore using the Tempo datasource.

Auth Middleware

SpanAttributesSource
auth.validate_tokenauth.validapi/auth_middleware.go
auth.resolve_accessauth.subject_id, auth.subject_type, auth.is_super_adminapi/auth_middleware.go
auth.check_permissionauth.permission_checked, auth.subject_id, auth.subject_type, auth.is_super_admin, auth.permitted, auth.client_idapi/auth_middleware.go

HTTP Middleware

SpanAttributesSource
otelhttp (auto-instrumented)request_id, method, path, statusobservability/middleware.go

Credential API

SpanAttributesSource
api.CreateCredentialapi/credential_handler.go
api.ListCredentialsapi/credential_handler.go
api.GetCredentialapi/credential_handler.go
api.UpdateCredentialapi/credential_handler.go
api.DeleteCredentialapi/credential_handler.go
api.TestCredentialapi/credential_handler.go

Healthcheck API

SpanAttributesSource
healthcheck.score.hostapi/healthcheck_handler.go
healthcheck.score.environmentapi/healthcheck_handler.go
healthcheck.score.clientapi/healthcheck_handler.go
healthcheck.triggerapi/healthcheck_handler.go

Metric API

SpanAttributesSource
api.ListMetricNamesproxima.host_idapi/metric_handler.go
api.QueryMetricsproxima.host_id, proxima.metric_name, proxima.derivativeapi/metric_handler.go
api.ListMetricSeriesproxima.host_id, proxima.metric_nameapi/metric_handler.go
api.QueryLatestMetricsproxima.host_count, proxima.metric_countapi/metric_handler.go
api.QueryProcessMetricsproxima.host_id, proxima.pid, proxima.process_nameapi/metric_handler.go
api.QueryContainerMetricsproxima.host_id, proxima.container_idapi/metric_handler.go
api.QueryContainerLatestMetricsproxima.host_idapi/metric_handler.go

Aggregate Metric API

SpanAttributesSource
api.ListMetricNamesByEnvironmentapi/aggregate_metric_handler.go
api.QueryMetricsByEnvironmentapi/aggregate_metric_handler.go
api.ListMetricSeriesByEnvironmentapi/aggregate_metric_handler.go
api.ListMetricNamesByClientapi/aggregate_metric_handler.go
api.QueryMetricsByClientapi/aggregate_metric_handler.go
api.ListMetricSeriesByClientapi/aggregate_metric_handler.go

Search API

SpanAttributesSource
api.Searchapi/search_handler.go
api.SearchCountapi/search_handler.go
api.SearchFieldsapi/search_handler.go
api.SearchValuesapi/search_handler.go
api.SearchValidateapi/search_handler.go
api.SearchAggregateapi/search_handler.go

Logs API

SpanAttributesSource
logs.queryapi/logs_handler.go
logs.proxyapi/logs_handler.go

Saved Search API

SpanAttributesSource
api.SavedSearchListapi/saved_search_handler.go
api.SavedSearchCreateapi/saved_search_handler.go
api.SavedSearchGetByIDapi/saved_search_handler.go
api.SavedSearchUpdateapi/saved_search_handler.go
api.SavedSearchDeleteapi/saved_search_handler.go

NATS Workers

SpanAttributesSource
process.registrationmessaging.system, messaging.subject, proxima.correlation_id, proxima.host_id, proxima.message_typeworker/events.go
process.heartbeatmessaging.system, messaging.subject, proxima.correlation_id, proxima.host_id, proxima.message_typeworker/events.go
process.inventorymessaging.system, messaging.subject, proxima.correlation_id, proxima.host_id, proxima.message_typeworker/events.go
process.telemetrymessaging.system, messaging.subjectworker/telemetry.go
process.heartbeat_v2messaging.system, messaging.subjectworker/heartbeat_consumer.go
process.config_fetchmessaging.system, messaging.subject, proxima.host_idworker/config_fetch.go
process.config_applymessaging.system, messaging.subject, proxima.host_id, proxima.config_type, proxima.status, proxima.versionworker/config_apply.go

Worker Processing

SpanAttributesSource
worker.HeartbeatProcessproxima.host_id, proxima.collectors_count, proxima.scanners_countworker/heartbeat.go
worker.ProcessesProcessproxima.host_id, proxima.process_countworker/processes.go
worker.MetricsProcessproxima.host_id, vm.account_id, vm.metric_countworker/metrics.go
worker.InventoryProcessworker/inventory.go
worker.ChangesProcessproxima.host_id, proxima.scan_type, proxima.file_count, proxima.batch_seq, proxima.batch_totalworker/changes.go
worker.HealthcheckProcessproxima.host_id, proxima.run_id, proxima.scanner, proxima.environment_id, proxima.client_id, proxima.total_checks, proxima.passed, proxima.failed, proxima.findings_countworker/healthcheck.go
logs.processproxima.host_id, vl.account_id, vl.entry_countworker/logs_worker.go

Compliance Worker

SpanAttributesSource
process.compliance.evaluatemessaging.system, messaging.subject, proxima.host_id, proxima.run_id, proxima.environment_id, proxima.client_idworker/compliance_consumer.go
worker.ComplianceEvaluateproxima.host_id, proxima.run_id, proxima.environment_id, proxima.client_id, proxima.framework.{slug}.controls, proxima.framework.{slug}.evaluationsworker/compliance.go

Config Sync

SpanAttributesSource
configsync.resolveproxima.config_type, proxima.host_id, proxima.environment_id, proxima.sourceagentconfig/resolver.go
configsync.resolve_allproxima.host_id, proxima.environment_id, proxima.config_countagentconfig/resolver.go
configsync.resolve_credentialsproxima.config_type, proxima.client_id, credential_id, credential_typeagentconfig/credential_resolver.go

Search Engine

SpanAttributesSource
search.Compileproxima.querysearch/search.go

VictoriaMetrics Client

SpanAttributesSource
vmclient.Importvmclient/client.go
vmclient.QueryRangevmclient/client.go
vmclient.Queryvmclient/client.go
vmclient.LabelValuesvmclient/client.go
vmclient.Healthvmclient/client.go

VictoriaLogs Client

SpanAttributesSource
vlclient.Insertvlclient/client.go
vlclient.Healthvlclient/client.go

Vault Transit

SpanAttributesSource
vault.transit.encryptcredential/vault_transit.go
vault.transit.decryptcredential/vault_transit.go

Store

SpanAttributesSource
store.SavedSearchListstore/saved_search.go
store.SavedSearchGetByIDstore/saved_search.go
store.SavedSearchCreatestore/saved_search.go
store.SavedSearchUpdatestore/saved_search.go
store.SavedSearchDeletestore/saved_search.go
store.SearchHostsstore/search.go
store.SearchCountstore/search.go
store.SearchAggregatestore/search.go
store.SearchFieldValuesstore/search.go

AI Chat & MCP

SpanAttributesSource
chat.llm_callmodelchat/llm_client.go
chat.model_route.llmmessage_previewchat/router.go
chat.context_prefetchchat/prefetch.go
chat.encryption.encryptchat/encryption.go
chat.encryption.decryptchat/encryption.go
chat.encryption.dek_resolvechat/encryption.go
chat.encryption.vault_encryptchat/encryption.go
chat.encryption.vault_decryptchat/encryption.go

Interactive Terminal (gRPC)

SpanAttributesSource
TerminalGRPC.Sessionhostname, login, ...grpcserver/terminal.go
TerminalGRPC.JoinSessionsession_idgrpcserver/terminal.go
TerminalGRPC.PortForwarduser_idgrpcserver/tunnel.go
TerminalGRPC.ProxySSHuser_idgrpcserver/proxyssh.go

L1 Incident Agent & Alerts

SpanAttributesSource
process.escalation.tickproxima.escalation.plannedworker/escalation_timer_worker.go
process.memory.draftmessaging.system, messaging.subject, proxima.alert_group_idworker/memory.go
process.alerts.ingestmessaging.system, messaging.subjectworker/alert.go
process.alerts.triagemessaging.system, messaging.subject, proxima.alert_group_idworker/triage.go
process.alerts.correlatemessaging.system, messaging.subjectworker/correlation.go

Fleet

SpanAttributesSource
fleet.worker_tickworker/fleet_update_worker.go

Service Desk & JSM

SpanAttributesSource
api.ServiceDesk.GetTicket.SLAapi/service_desk_ticket_handler.go
api.ServiceDesk.GetTicket.Deliveryapi/service_desk_ticket_handler.go
api.ServiceDesk.GetTicket.StatusHistoryapi/service_desk_ticket_handler.go
jsm.add_attachmentjsmclient/client.go
jsm.proxy_downloadjsmclient/client.go

Briefing

SpanAttributesSource
briefing.Assembleservice/briefing_service.go
briefing.<source>(per-source child spans)service/briefing_service.go

OIDC

SpanAttributesSource
auth.oidc_exchange(client span)auth/oidc.go
auth.oidc_verify(client span)auth/oidc.go

All span names follow the subsystem.operation naming convention. Attributes use the proxima. prefix for domain-specific values and OpenTelemetry semantic conventions (e.g., messaging.system) for infrastructure attributes.

note

This page lists the primary span subsystems. The backend instruments additional spans (e.g. Kubernetes sync, ClickHouse, email) and the agent emits its own spans that are forwarded to Tempo via the trace-ingest worker — see Agent Tracing. The authoritative source is always the *.Start(ctx, "...") calls in the backend and agent code.