fixing traces #3082
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!3082
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/3082/head"
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?
Imported from GitHub pull request.
Original GitHub pull request: #3083
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/3083
Original created: 2026-03-26T00:32:50Z
Original updated: 2026-03-26T00:37:45Z
Original head: carverauto/serviceradar:updates/traces-missing
Original base: staging
Original merged: 2026-03-26T00:37:44Z by @mfreeman451
IMPORTANT: Please sign the Developer Certificate of Origin
Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
Imported GitHub PR review comment.
Original author: @Copilot
Original URL: https://github.com/carverauto/serviceradar/pull/3083#discussion_r2991836370
Original created: 2026-03-26T00:36:34Z
Original path: go/pkg/consumers/db-event-writer/service_test.go
Original line: 90
Test name is now misleading: the assertion includes trace subject expansion ("otel.traces" added when configuring "otel.traces.raw"), not just the derived metrics filter. Consider renaming the test (or splitting into separate tests) so failures point to the correct behavior under test.
Imported GitHub PR review comment.
Original author: @Copilot
Original URL: https://github.com/carverauto/serviceradar/pull/3083#discussion_r2991836397
Original created: 2026-03-26T00:36:35Z
Original path: go/pkg/consumers/db-event-writer/service.go
Original line: 418
consumerFilterSubjects currently returns both "otel.traces" and "otel.traces.raw" even when the configured subject is "otel.traces.raw". In multi-stream mode, the Processor's routing only matches configured stream subjects (e.g., "otel.traces.raw"), so any legacy "otel.traces" messages delivered by the widened consumer filter won't map to a table and can cause ProcessBatch to error (leaving some messages in the batch unacked and repeatedly redelivered). Consider only expanding legacy->raw (i.e., return both when config is "otel.traces"), or ensure the stream routing config/logic also handles "otel.traces" when subscribing to it (e.g., add a stream entry or normalize subjects consistently between consumer filters and routing).
Imported GitHub PR review comment.
Original author: @Copilot
Original URL: https://github.com/carverauto/serviceradar/pull/3083#discussion_r2991836427
Original created: 2026-03-26T00:36:35Z
Original path: go/pkg/consumers/db-event-writer/service_test.go
Original line: 89
This assertion expects the service to subscribe to both "otel.traces" and "otel.traces.raw" even though the configured stream subject is only "otel.traces.raw". If the processor/routing config doesn't also handle "otel.traces", receiving legacy trace messages can trigger batch-processing errors and leave other messages unacked. Align the expected subjects here with the intended routing behavior (either subscribe only to "otel.traces.raw" when configured that way, or ensure routing supports both).