Skip to content

Conversation

sujalshah-bit
Copy link
Contributor

@sujalshah-bit sujalshah-bit commented Jul 30, 2025

This commit introduce new endpint with fake
deep dependencies data.

Part of #6606.

Screenshots and Screencaptures

Screenshot 2025-07-30 at 11 36 24 AM
output.mov

NOTE: The above graph shown in the visuals will only be shown after UI changes(See PR ). This PR only focuses on the backend level change.

Checklist

@sujalshah-bit sujalshah-bit requested a review from a team as a code owner July 30, 2025 06:15
@dosubot dosubot bot added the go Pull requests that update go code label Jul 30, 2025
Copy link

codecov bot commented Jul 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.46%. Comparing base (b815af5) to head (8f40e13).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7399      +/-   ##
==========================================
- Coverage   96.46%   96.46%   -0.01%     
==========================================
  Files         375      377       +2     
  Lines       22951    23071     +120     
==========================================
+ Hits        22140    22255     +115     
- Misses        613      617       +4     
- Partials      198      199       +1     
Flag Coverage Δ
badger_v1 9.00% <ø> (-0.06%) ⬇️
badger_v2 1.70% <ø> (-0.02%) ⬇️
cassandra-4.x-v1-manual 11.69% <ø> (-0.08%) ⬇️
cassandra-4.x-v2-auto 1.69% <ø> (-0.02%) ⬇️
cassandra-4.x-v2-manual 1.69% <ø> (-0.02%) ⬇️
cassandra-5.x-v1-manual 11.69% <ø> (-0.08%) ⬇️
cassandra-5.x-v2-auto 1.69% <ø> (-0.02%) ⬇️
cassandra-5.x-v2-manual 1.69% <ø> (-0.02%) ⬇️
elasticsearch-6.x-v1 16.60% <ø> (-0.12%) ⬇️
elasticsearch-7.x-v1 16.64% <ø> (-0.12%) ⬇️
elasticsearch-8.x-v1 16.79% <ø> (-0.12%) ⬇️
elasticsearch-8.x-v2 1.70% <ø> (-0.02%) ⬇️
elasticsearch-9.x-v2 1.70% <ø> (-0.02%) ⬇️
grpc_v1 10.22% <ø> (-0.07%) ⬇️
grpc_v2 1.70% <ø> (-0.02%) ⬇️
kafka-3.x-v1 9.69% <ø> (+0.46%) ⬆️
kafka-3.x-v2 1.70% <ø> (-0.02%) ⬇️
memory_v2 1.70% <ø> (-0.02%) ⬇️
opensearch-1.x-v1 16.69% <ø> (-0.12%) ⬇️
opensearch-2.x-v1 16.69% <ø> (-0.12%) ⬇️
opensearch-2.x-v2 1.70% <ø> (-0.02%) ⬇️
opensearch-3.x-v2 1.70% <ø> (-0.02%) ⬇️
query 1.70% <ø> (-0.02%) ⬇️
tailsampling-processor 0.47% <ø> (-0.01%) ⬇️
unittests 95.44% <100.00%> (+<0.01%) ⬆️

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.

This commit introduce new endpint with fake
deep dependencies data.

Resolves jaegertracing#6606.

Signed-off-by: Sujal Shah <sujalshah28092004@gmail.com>
@sujalshah-bit sujalshah-bit force-pushed the implement_deep_dependency_endpoint branch from 0237520 to 44388c7 Compare July 30, 2025 06:28
sujalshah-bit added a commit to sujalshah-bit/jaeger-ui that referenced this pull request Jul 30, 2025
This commit updates the Deep Dependency Graph UI logic
to use the correct backend API endpoint for fetching data.

Resolves [#6606](jaegertracing/jaeger#6606).

Part of [#7399](jaegertracing/jaeger#7399).

Signed-off-by: Sujal Shah <sujalshah28092004@gmail.com>
yurishkuro and others added 4 commits August 2, 2025 11:38
Signed-off-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro changed the title deep_dependencies: Add /deep-dependencies endpoint Add /deep-dependencies endpoint Aug 2, 2025
@@ -876,6 +877,21 @@ func TestGetQualityMetrics(t *testing.T) {
require.Contains(t, resp.TraceQualityDocumentationLink, "github.com/jaegertracing")
}

func TestGetDeepDependenciesData(t *testing.T) {
handler := &APIHandler{}
Copy link
Contributor

Choose a reason for hiding this comment

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

The test creates an empty APIHandler without initialization, which may cause failures when writeJSON() is called in the deepDependencies handler. Consider using initializeTestServer() (as used in other tests) or initializing the handler with required dependencies like a logger. This would better match the production environment and ensure all handler dependencies are properly satisfied.

Suggested change
handler := &APIHandler{}
handler := initializeTestServer(nil)

Spotted by Diamond

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

@yurishkuro yurishkuro enabled auto-merge August 2, 2025 14:45
@yurishkuro yurishkuro disabled auto-merge August 2, 2025 15:04
@yurishkuro yurishkuro merged commit 64cfed5 into jaegertracing:main Aug 2, 2025
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:bugfix-or-minor-feature go Pull requests that update go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants