-
Notifications
You must be signed in to change notification settings - Fork 853
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
Add tracing to the Cosmos Client #23185
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @MehaKaushik @Pilchie @wmengmsft. |
Also tagging @simorenoh and @ealsur. |
This should be pretty straightforward, just need to add calls to |
@jhendrixMSFT it looks like the Tracer is added to all azcore Client based clients, but cosmos seems to use Pipelines directly without an azcore Client. Would it make sense to just add this little bit from azcore's NewClient into cosmos's NewClient functions? Also, would you like for me to open a PR for these changes, or do you foresee this being added from your side? Thanks!! |
Good point. We will also need to update the |
@ealsur I took a stab at updating the cosmos client to use an |
Thanks @jhendrixMSFT. Just wanted to point out that it might be a couple of weeks before we're able to pick this up. |
@jhendrixMSFT Is the recommendation that all clients inherit from Creating the Tracer would not be enough though right? We would need to wire the Tracer on all operations? |
Not inherit but embed. This way, you get all the wiring and any other future changes for free. If not, you'd want to reimplement the body of |
@jhendrixMSFT Let's say we embed it, do we need to implement calls to the tracer anyway around the user methods? Just trying to measure the effort required. |
Yeah, each method will require adding a call to |
Feature Request
I see that many of the packages such as aztables and azidentity have build in tracing support, but it appears that azcosmos does not yet have this.
Is this on the roadmap at all or would you be open to accepting a contribution adding this to the cosmos implementation?
The text was updated successfully, but these errors were encountered: