Skip to content

Conversation

pipiland2612
Copy link
Contributor

@pipiland2612 pipiland2612 commented Jun 8, 2025

Which problem is this PR solving?

Description of the changes

  • add example configuration to use es as a metricstorage
  • add metricstore.Reader interface for elasticsearch with dummy implementation
  • add corresponding unit test

How was this change tested?

  • make lint test
  • local testing (using make build and ensure that the error not implemented has been returned)

Checklist

@pipiland2612 pipiland2612 requested a review from a team as a code owner June 8, 2025 20:31
@pipiland2612 pipiland2612 requested a review from pavolloffay June 8, 2025 20:31
…icsearch metrics_backend

Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Copy link

codecov bot commented Jun 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.15%. Comparing base (ea73774) to head (70a6b86).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7209      +/-   ##
==========================================
- Coverage   96.19%   96.15%   -0.05%     
==========================================
  Files         366      368       +2     
  Lines       21962    22009      +47     
==========================================
+ Hits        21127    21163      +36     
- Misses        624      632       +8     
- Partials      211      214       +3     
Flag Coverage Δ
badger_v1 9.85% <ø> (-0.01%) ⬇️
badger_v2 1.90% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v1-manual 14.81% <ø> (-0.02%) ⬇️
cassandra-4.x-v2-auto 1.89% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v2-manual 1.89% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v1-manual 14.81% <ø> (-0.02%) ⬇️
cassandra-5.x-v2-auto 1.89% <0.00%> (-0.01%) ⬇️
cassandra-5.x-v2-manual 1.89% <0.00%> (-0.01%) ⬇️
elasticsearch-6.x-v1 20.77% <ø> (+0.06%) ⬆️
elasticsearch-7.x-v1 20.85% <ø> (+0.06%) ⬆️
elasticsearch-8.x-v1 21.03% <ø> (+0.06%) ⬆️
elasticsearch-8.x-v2 1.90% <0.00%> (-0.01%) ⬇️
grpc_v1 11.38% <ø> (-0.01%) ⬇️
grpc_v2 1.90% <0.00%> (-0.01%) ⬇️
kafka-3.x-v1 10.20% <ø> (-0.01%) ⬇️
kafka-3.x-v2 1.90% <0.00%> (-0.01%) ⬇️
memory_v2 1.90% <0.00%> (-0.01%) ⬇️
opensearch-1.x-v1 20.90% <ø> (+0.06%) ⬆️
opensearch-2.x-v1 20.90% <ø> (+0.06%) ⬆️
opensearch-2.x-v2 1.90% <0.00%> (-0.01%) ⬇️
query 1.90% <0.00%> (-0.01%) ⬇️
tailsampling-processor 0.53% <0.00%> (-0.01%) ⬇️
unittests 94.98% <100.00%> (-0.04%) ⬇️

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: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
…ge/extension_test.go

Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
@pipiland2612
Copy link
Contributor Author

Hi @yurishkuro, the pull request is ready for your review

@yurishkuro yurishkuro added the changelog:exprimental Change to an experimental part of the code label Jun 9, 2025
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
@pipiland2612 pipiland2612 requested a review from yurishkuro June 9, 2025 17:52
@pipiland2612 pipiland2612 requested a review from yurishkuro June 10, 2025 08:21
@pipiland2612
Copy link
Contributor Author

Hi @yurishkuro , the pr is ready for your review

Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
@yurishkuro
Copy link
Member

@pipiland2612 please give descriptive title to the PRs

@pipiland2612
Copy link
Contributor Author

Sure, thank you for remind me!

@pipiland2612 pipiland2612 changed the title W2 configuration [W2] Add example configuration to use ES as metricstorage for SPM Jun 10, 2025
@pipiland2612 pipiland2612 changed the title [W2] Add example configuration to use ES as metricstorage for SPM Add example configuration to use ES as metricstorage for SPM & dummy es metricstore.Reader interface implementation Jun 10, 2025
Signed-off-by: pipiland2612 <nguyen.t.dang.minh@gmail.com>
@pipiland2612 pipiland2612 requested a review from yurishkuro June 10, 2025 17:13
@pipiland2612
Copy link
Contributor Author

Hi @yurishkuro , could you please give me a review? That would be so nice then I can continue my work with W3

Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro changed the title Add example configuration to use ES as metricstorage for SPM & dummy es metricstore.Reader interface implementation Add skeleton implementation for ES as metricstorage for SPM Jun 10, 2025
@yurishkuro yurishkuro enabled auto-merge June 10, 2025 20:56
@pipiland2612
Copy link
Contributor Author

Thank you for your support! I really appreciate it

Comment on lines +12 to +13
traces: elasticsearch_trace_storage
metrics: elasticsearch_trace_storage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The configuration references elasticsearch_trace_storage for both traces and metrics storage, but this identifier is only defined in the backends section for trace storage. For metrics, it should reference an identifier defined in the metric_backends section. Please update line 13 to use the same identifier that's defined in the metric_backends section (lines 20-24) to ensure proper configuration mapping.

Suggested change
traces: elasticsearch_trace_storage
metrics: elasticsearch_trace_storage
traces: elasticsearch_trace_storage
metrics: elasticsearch_metrics_storage

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

@yurishkuro yurishkuro added this pull request to the merge queue Jun 10, 2025
Merged via the queue into jaegertracing:main with commit e477df3 Jun 10, 2025
60 checks passed
@pipiland2612 pipiland2612 deleted the W2_Configuration branch June 10, 2025 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:exprimental Change to an experimental part of the code storage/elasticsearch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants