Skip to content

[clickhouse] Update FindTraceIDs to filter by string attributes #7788

Merged
mahadzaryab1 merged 6 commits into
jaegertracing:mainfrom
mahadzaryab1:find-trace-ids-5
Dec 26, 2025
Merged

[clickhouse] Update FindTraceIDs to filter by string attributes #7788
mahadzaryab1 merged 6 commits into
jaegertracing:mainfrom
mahadzaryab1:find-trace-ids-5

Conversation

@mahadzaryab1
Copy link
Copy Markdown
Collaborator

Which problem is this PR solving?

Description of the changes

  • Updated FindTraceIDs for ClickHouse storage to filter by string attributes.

How was this change tested?

  • Unit tests
  • Manual test with a running ClickHouse instance on my machine

Checklist

@mahadzaryab1 mahadzaryab1 requested a review from a team as a code owner December 26, 2025 00:03
@mahadzaryab1 mahadzaryab1 added the changelog:experimental Change to an experimental part of the code label Dec 26, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 26, 2025

Codecov Report

❌ Patch coverage is 97.67442% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.51%. Comparing base (c28d899) to head (bb1f3bf).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...nternal/storage/v2/clickhouse/tracestore/reader.go 97.67% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7788      +/-   ##
==========================================
- Coverage   95.54%   95.51%   -0.03%     
==========================================
  Files         308      308              
  Lines       15488    15503      +15     
==========================================
+ Hits        14798    14808      +10     
- Misses        544      548       +4     
- Partials      146      147       +1     
Flag Coverage Δ
badger_v1 9.61% <0.00%> (-0.02%) ⬇️
badger_v2 2.01% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v1-manual 14.22% <0.00%> (-0.03%) ⬇️
cassandra-4.x-v2-auto 2.00% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-manual 2.00% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v1-manual 14.22% <0.00%> (-0.03%) ⬇️
cassandra-5.x-v2-auto 2.00% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-manual 2.00% <0.00%> (-0.01%) ⬇️
clickhouse 1.93% <0.00%> (-0.01%) ⬇️
elasticsearch-6.x-v1 18.37% <0.00%> (-0.04%) ⬇️
elasticsearch-7.x-v1 18.40% <0.00%> (-0.04%) ⬇️
elasticsearch-8.x-v1 18.56% <0.00%> (-0.04%) ⬇️
elasticsearch-8.x-v2 2.01% <0.00%> (-0.01%) ⬇️
elasticsearch-9.x-v2 2.01% <0.00%> (-0.01%) ⬇️
grpc_v1 9.49% <0.00%> (-0.02%) ⬇️
grpc_v2 2.01% <0.00%> (-0.01%) ⬇️
kafka-3.x-v2 2.01% <0.00%> (-0.01%) ⬇️
memory_v2 ?
opensearch-1.x-v1 18.45% <0.00%> (-0.04%) ⬇️
opensearch-2.x-v1 18.45% <0.00%> (-0.04%) ⬇️
opensearch-2.x-v2 2.01% <0.00%> (-0.01%) ⬇️
opensearch-3.x-v2 2.01% <0.00%> (-0.01%) ⬇️
query 2.01% <0.00%> (-0.01%) ⬇️
tailsampling-processor 0.58% <0.00%> (-0.01%) ⬇️
unittests 94.02% <97.67%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Comment thread internal/storage/v2/clickhouse/tracestore/reader.go Outdated
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
@mahadzaryab1 mahadzaryab1 added this pull request to the merge queue Dec 26, 2025
Merged via the queue into jaegertracing:main with commit 134b757 Dec 26, 2025
59 checks passed
@mahadzaryab1 mahadzaryab1 deleted the find-trace-ids-5 branch December 26, 2025 01:18
ThatDeparted2061 pushed a commit to ThatDeparted2061/jaeger that referenced this pull request Dec 31, 2025
…egertracing#7788)

## Which problem is this PR solving?
- Towards jaegertracing#7134

## Description of the changes
- Updated `FindTraceIDs` for ClickHouse storage to filter by string
attributes.

## How was this change tested?
- Unit tests
- Manual test with a running ClickHouse instance on my machine

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `npm run lint` and `npm run test`

---------

Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: ThatDeparted2061 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/storage changelog:experimental Change to an experimental part of the code enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants