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

Clarify target in DB Span name #1061

Closed

Conversation

gregkalapos
Copy link
Member

Clarify span name to avoid alternating span name formats and allow dropping {target} in edge cases.

Fixes #1045

Changes

Implementing #1045 (comment) from DB Stabilization WG meeting.

Merge requirement checklist

Clarify span name to avoid alternating span name formats and allow dropping `target`.
@@ -71,6 +71,8 @@ The <span id="target-placeholder">`{target}`</span> SHOULD adhere to one of the
- `server.address:server.port`
- `db.system`

A given instrumentation SHOULD strive for consistency in span names. This means that if a specific attribute from the [`{target}`](#target-placeholder) list is selected, it should always be used for the span name. If certain queries lack this specific attribute, the instrumentation SHOULD use `{db.operation.name}` as the span name and omit `{target}`, rather than falling back to the next attribute in the [`{target}`](#target-placeholder) list.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please break the lines? That way it's easier to leave comments and suggestions when the lines are between 80-120 chars long.

We have tooling to enforce this but not running it at the moment.

@gregkalapos
Copy link
Member Author

We discussed this in the DB Stabilization SIG meeting - likely we'll go with #1069. Will close this if there is a final decision.

@gregkalapos
Copy link
Member Author

Closing in favour of #1069

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

Successfully merging this pull request may close these issues.

DB Span name format with alternating attributes
3 participants