Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a /quality-metrics endpoint #6608

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ADI-ROXX
Copy link
Contributor

@ADI-ROXX ADI-ROXX commented Jan 25, 2025

Which problem is this PR solving?

Description of the changes

How was this change tested?

Checklist

@ADI-ROXX ADI-ROXX requested a review from a team as a code owner January 25, 2025 16:34
@ADI-ROXX ADI-ROXX requested a review from pavolloffay January 25, 2025 16:34
Copy link

codecov bot commented Jan 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.03%. Comparing base (bc2a643) to head (8d5df2d).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6608      +/-   ##
==========================================
+ Coverage   95.99%   96.03%   +0.04%     
==========================================
  Files         363      364       +1     
  Lines       20601    20696      +95     
==========================================
+ Hits        19775    19876     +101     
+ Misses        630      626       -4     
+ Partials      196      194       -2     
Flag Coverage Δ
badger_v1 9.88% <ø> (+0.05%) ⬆️
badger_v2 1.81% <ø> (-0.01%) ⬇️
cassandra-4.x-v1-manual 14.83% <ø> (+0.04%) ⬆️
cassandra-4.x-v2-auto 1.80% <ø> (-0.01%) ⬇️
cassandra-4.x-v2-manual 1.80% <ø> (-0.01%) ⬇️
cassandra-5.x-v1-manual 14.83% <ø> (+0.04%) ⬆️
cassandra-5.x-v2-auto 1.80% <ø> (-0.01%) ⬇️
cassandra-5.x-v2-manual 1.80% <ø> (-0.01%) ⬇️
elasticsearch-6.x-v1 19.16% <ø> (+0.03%) ⬆️
elasticsearch-7.x-v1 19.24% <ø> (+0.03%) ⬆️
elasticsearch-8.x-v1 19.41% <ø> (+0.03%) ⬆️
elasticsearch-8.x-v2 1.81% <ø> (-0.01%) ⬇️
grpc_v1 10.85% <ø> (+0.05%) ⬆️
grpc_v2 7.78% <ø> (-0.04%) ⬇️
kafka-3.x-v1 10.17% <ø> (+0.05%) ⬆️
kafka-3.x-v2 1.81% <ø> (-0.01%) ⬇️
memory_v2 1.81% <ø> (-0.01%) ⬇️
opensearch-1.x-v1 19.29% <ø> (+0.03%) ⬆️
opensearch-2.x-v1 19.29% <ø> (+0.03%) ⬆️
opensearch-2.x-v2 1.81% <ø> (-0.01%) ⬇️
tailsampling-processor 0.48% <ø> (-0.01%) ⬇️
unittests 94.92% <100.00%> (+0.05%) ⬆️

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.

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

include a screenshot demonstrating that this works in the UI

Signed-off-by: cs-308-2023 <[email protected]>
Signed-off-by: cs-308-2023 <[email protected]>
@yaten2302
Copy link

Hey @ADI-ROXX , I was working on this PR: Migrate DetailsCard from class based to function based component, but there's a problem that before migrating, the /quality-metrics endpoint must be present in order to show the correct results.
I see that you're working on this issue, may we collaborate on this, if it's fine with you?
Thanks

@@ -183,7 +262,7 @@ func (aH *APIHandler) transformOTLP(w http.ResponseWriter, r *http.Request) {
}

traces, err := otlp2traces(body)
if aH.handleError(w, err, http.StatusInternalServerError) {
if aH.handleError(w, err, http.StatusBadRequest) {
Copy link
Member

Choose a reason for hiding this comment

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

this is unrelated to this PR

cmd/query/app/http_handler.go Outdated Show resolved Hide resolved
cmd/query/app/http_handler.go Outdated Show resolved Hide resolved
@yurishkuro yurishkuro mentioned this pull request Feb 2, 2025
4 tasks
Signed-off-by: cs-308-2023 <[email protected]>
@ADI-ROXX
Copy link
Contributor Author

ADI-ROXX commented Feb 3, 2025

Hey @ADI-ROXX , I was working on this PR: Migrate DetailsCard from class based to function based component, but there's a problem that before migrating, the /quality-metrics endpoint must be present in order to show the correct results. I see that you're working on this issue, may we collaborate on this, if it's fine with you? Thanks

Hi @yaten2302. I don't think that this PR has much change left. However, if I feel difficulty in something, I will let you know.

Signed-off-by: cs-308-2023 <[email protected]>
@ADI-ROXX
Copy link
Contributor Author

ADI-ROXX commented Feb 8, 2025

@yurishkuro Do you have any idea for any test in mind for data.go? I don't have any idea for the same.

"github.com/jaegertracing/jaeger/pkg/testutils"
)

func TestDummy(*testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

why can't you add a test for GetSampleData?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create dummy /quality-metrics endpoint
3 participants