Skip to content

Conversation

@idastambuk
Copy link
Contributor

What this PR does / why we need it:
I think it makes sense for us to redirect all trace queries to the backend before we release the Service Map feature. It's a BE feature and if we don't redirect all trace queries to the BE, we won't have feature parity in Dashboards vs. Explore

I also renamed node graph to Service Map, since it looks like 'service map' is used elswhere (X-ray, Elastic, Tempo) for the feature, and Node Graph is used for the Grafana visualization.

Special notes for your reviewer:

@idastambuk idastambuk requested a review from a team as a code owner April 9, 2024 12:27
@idastambuk idastambuk requested review from iwysiu and njvrzm and removed request for a team April 9, 2024 12:27
Copy link
Contributor

@iwysiu iwysiu left a comment

Choose a reason for hiding this comment

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

Looks good, a couple questions though

],
});

it('can handle multiple trace list queries', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these tests have backend equivalents/are they just unnecessary now?

Copy link
Contributor Author

@idastambuk idastambuk Apr 11, 2024

Choose a reason for hiding this comment

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

It looks like there are some missing in the backend, added them!

Copy link
Contributor

@iwysiu iwysiu left a comment

Choose a reason for hiding this comment

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

One comment, but tests look good!

require.Len(t, result.Responses, 2)

// 1st query
queryResTraceSpans1 := result.Responses["B"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Should one of these be A? Also totally optional, I know the original was very bare bones, but is there anything else we want to check in these to confirm parsing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, added a check for operationName :)

@idastambuk idastambuk merged commit c5d4732 into main Apr 15, 2024
@idastambuk idastambuk deleted the node-graph-rename branch April 15, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants