-
Notifications
You must be signed in to change notification settings - Fork 845
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
Set all azcosmos telemetry spans to have the Kind of SpanKindClient #23618
Conversation
Thank you for your contribution @kjg! We will review the pull request and get back to you soon. |
The lint errors on this PR appear to be unrelated to the changes, should I take any action on them? |
@simorenoh @analogrelay - can one of you take a look at this. |
I believe you're correct, they're unrelated, but I'd love to get us green on this PR before we land it. Let me take a look and see if it's a straightforward fix. If it is, it'd be good to get it in here. |
Yeah, it's a straightforward fix, just removing the nil checks here:
I haven't yet been able to track down why these weren't failing before. There was a change to this file last month that built successfully, and as far as I can tell, we haven't changed our golangci-lint config since then. I'll do a little looking, but the fix should be safe and straightforward. |
I'll make it here, Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I'd like the previously-failing lint check to pass before merging (though it's not directly related to the main PR).
Looks like there was an update of our golangci version in #23536 that was green in the PR (because that PR didn't build all the packages) but failed in main because of the linter update. That likely explains why the lint started failing without a specific PR to cause it. |
It looks like all the tests are passing now, so I think this is good to go. Thanks for the guidance! |
@kirankumarkolli @Pilchie @simorenoh @kushagraThapar , I'm not a CODEOWNER yet. Could one of you take a look at this? |
Many tracing tools use the kind of the telemetry span to show the span in a specific way. By setting the azcosmos spans to type of Client, they will allow telemetry tools to treat the spans as the span of a database Client. When a span kind is not specified it is default to a kind of "Internal" which shows up to tracing tools as if these spans are part of internal code logic instead of spans generated by database client.
I've bumped azcore to v1.16.0, because that's the first version of azcore that allows the Span kind to be specified in the StartSpanOptions.