-
Notifications
You must be signed in to change notification settings - Fork 592
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
Broker tracing conventions #2983
Broker tracing conventions #2983
Conversation
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.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
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.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
if span.IsRecordingEvents() { | ||
span.AddAttributes( | ||
tracing.MessagingSystemAttribute, | ||
tracing.MessagingProtocolHTTP, | ||
tracing.TriggerMessagingDestinationAttribute(triggerRef.NamespacedName), | ||
tracing.MessagingMessageIDAttribute(event.ID()), | ||
) | ||
} |
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.
move to some util? It's like 4times in this PR 🤷♂️
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.
I'm not sure a helper function would improve readability. All of these attributes besides the system attribute would need to be arguments to the helper function anyways and I prefer being explicit about what attributes are being added.
@ian-mi would you mind getting this rebased? Also, thoughts on util for the span setting? |
733f364
to
c8a24c2
Compare
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the ℹ️ Googlers: Go here for more info. |
Rebased! Needs consent from @mattmoor |
/lgtm |
@googlebot I consent! |
@googlebot I consent. |
It is possible to directly test the attribute helpers since attribute fields are unexported.
c8a24c2
to
67b17d7
Compare
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
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.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
Co-authored-by: Matt Moore <mattmoor@vmware.com>
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.
Produced via:
prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github | grep -v docs/cmd/)
Co-authored-by: Matt Moore <mattmoor@vmware.com>
The following is the coverage report on the affected files.
|
Strange that that didn't seem to work... I've just dropped the commits and reapplied the suggestions to workaround the issue. I've also slightly improved test coverage. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ian-mi, vaikas The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #2958 #1766 #1763
Proposed Changes