patch: set span name as tag#126
Merged
Merged
Conversation
There was a problem hiding this comment.
Important
Looks good to me! 👍
Reviewed everything up to db766f8 in 1 minute and 12 seconds. Click for details.
- Reviewed
12lines of code in1files - Skipped
0files when reviewing. - Skipped posting
2draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. internal/telemetry/helpers.go:102
- Draft comment:
Consider using a more descriptive attribute key than "name" (e.g., "span.name") to better align with OpenTelemetry semantic conventions and avoid potential ambiguity with the span's operation name. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
2. internal/telemetry/helpers.go:102
- Draft comment:
Setting the span name as an attribute ('name') might be redundant since the span's operation name is already set via tracer.Start. Consider if this extra attribute is needed or if you want to use a standard semantic attribute key. Also, if you keep it, consider grouping it with other attributes. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 30% vs. threshold = 50% The comment makes a valid point about redundancy - storing the same information twice doesn't add value. The suggestion about grouping attributes is also reasonable since there are multiple SetAttributes calls that could be combined. However, this is more of a style/optimization suggestion rather than a clear bug or issue that needs fixing. The redundant attribute might actually be intentional for easier querying or visualization in the telemetry system. Without knowing the full telemetry setup and requirements, removing it could break existing dashboards or queries. While the redundancy might be intentional, the comment still provides value by making the author think about whether this duplication is really needed and suggesting a potential optimization with attribute grouping. The comment raises valid points about code optimization, but since it's not pointing out a clear bug and requires more context about telemetry requirements to make a decision, it's better to err on the side of not keeping it.
Workflow ID: wflow_zfHrpFPVOK1Abdeo
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Set span name as an attribute in OpenTelemetry spans in
helpers.go.helpers.go,StartSpan()now sets the span name as an attributenamein OpenTelemetry spans.This description was created by
for db766f8. You can customize this summary. It will automatically update as commits are pushed.