Repository navigation
[HDX-5732] Use OTel span events and links in the default Traces source - #288
Conversation
🦋 Changeset detectedLatest commit: abf82b1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Deep ReviewConfig-only change: the ✅ No critical issues found. No P0/P1 or P2 findings. The added span-event/link expressions and the 🔵 P3 nitpicks (2)
Reviewers (4): correctness, testing, maintainability, project-standards. Testing gaps:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. |
Summary
Linear: HDX-5732
Updates the default HyperDX sources in
values.yamlto match the current source schema. The main fix: the default Traces source now setsspanEventsValueExpressionandspanLinksValueExpression. HyperDX needs both to show span events (including exceptions) and span links. HyperDX's onboarding flow and schema auto-detection already set them, but the chart's defaults had fallen behind.Only new installs are affected. HyperDX applies
DEFAULT_SOURCESonly to teams with no sources yet, so existing sources are left alone and users can opt in from source settings.Changes
"spanEventsValueExpression": "Events"and"spanLinksValueExpression": "Links".summaryandexponential histogramtables inmetricTables. The key must be theMetricsDataTypevalue, including the space; other spellings are silently dropped.bodyExpressionon Traces,sessionSourceIdon Logs, andtraceSourceId/sessionSourceIdplus stray_id/idkeys on Metrics.Compatibility
Checked against HyperDX's source schemas (zod and mongoose) at the shipped
appVersion2.39.1 and atmain; every field is accepted and saved. The 2.39.1 collector creates every referenced column and table (Events.*,Links.*,otel_metrics_summary,otel_metrics_exponential_histogram) in both the standard and compat schemas.Testing
helm unittest charts/clickstack: 256 passedhelm templaterenders with eachexamples/*/values.yamlDEFAULT_SOURCESis valid JSON with the expected fieldsNot included
metadataMaterializedViews(kv rollup tables) for Logs/Traces. HyperDX's own defaults set it, but on 2.39.1 it hides attribute keys from autocomplete. That was fixed in 2.40.0, so it's worth adding with the nextappVersionbump.