-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DB: fix how operation and collection names are recorded for complex q…
…ueries (opt-in `db.query.text` on metrics, new `db.query.summary` recommended attribute) (#1482) Co-authored-by: Trask Stalnaker <[email protected]>
- Loading branch information
Showing
19 changed files
with
676 additions
and
225 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
# | ||
# If your change doesn't affect end users you should instead start | ||
# your pull request title with [chore] or use the "Skip Changelog" label. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: bug_fix | ||
component: db | ||
note: | | ||
Fix telemetry for complex queries: | ||
- introduce the `db.query.summary` attribute to provide a concise, low-cardinality | ||
representation of the query text. | ||
- use `db.query.summary` as the span name and as a recommended attribute on metrics. | ||
- avoid capturing `db.operation.name` and `db.collection.name` when the query | ||
involves multiple operations or collections, to prevent ambiguity. | ||
issues: [521, 805, 1159] |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.