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

Feature request- API to get all services links by using a traceId #97

Open
metalhead44 opened this issue Jul 28, 2022 · 2 comments
Open

Comments

@metalhead44
Copy link

Hello,

Today, I could use the dependencies api to get the services link by inputting a timestamp value but it is very tedious to get the exact timestamp. We want to use the trace data to derive service links for a particular traceId. This will be of more value as we will be tagging custom attribute to the trace data like business identifiers like customerId and then using this customerId to get the traceId and then get the links of all services involved in the transaction.

Is there any appetite to add this feature to get service links based on a traceid pls? Or if someone can guide me how to do it easily or if someone already did it before?

This will come specially handy in building lineage of data in the database for a business transactions. for example - I can decide to drop all data for prospect customers after 6 months from database if their status is "LOST Opportunity". But in a big system, one may not know which all services are involved and how to clear data from 10-15 databases. Hope this makes sense on why I need such a capability. Thanks!!

@jcchavezs
Copy link
Contributor

jcchavezs commented Jul 28, 2022 via email

@metalhead44
Copy link
Author

I figured a way to do it on my own way. Basically , I will be using the trace/{traceId} endpoint to get the relevant trace. Then using the JSONPath library get all the servicenames by using the expression. - $[*].localEndpoint.serviceName.
This seems to be working just that, I will need to build my own API to get this information.
I can probably try to raise a pull request if this is going to help wider community.

the endpoint could be
trace/{traceid}/services

Thoughts ?

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

No branches or pull requests

2 participants