Skip to content

Commit 4fb26f4

Browse files
Clarification on span name cardinality
1 parent 71ac1b2 commit 4fb26f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

specs/agents/tracing-instrumentation-db.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The following fields are relevant for database and datastore spans. Where possib
1818

1919
| Field | Description | Mandatory |
2020
|-------|-------------|:---------:|
21-
|`name`| The name of the exit database span. For SQL operations we perform a limited parsing of the statement, and extract the operation name and outer-most table involved. Other databases and storages may have different strategies for the span name (see specific databases and stores in the sections below).| :white_check_mark: |
21+
|`name`| The name of the exit database span. **The span name must have a low cardinality as it is used as a dimension for derived metrics!** Therefore, for SQL operations we perform a limited parsing of the statement, and extract the operation name and outer-most table involved. Other databases and storages may have different strategies for the span name (see specific databases and stores in the sections below).| :white_check_mark: |
2222
|`type`|For database spans, the type should be `db`.| :white_check_mark:|
2323
|`subtype`|For database spans, the subtype should be the database vendor name. See details below for specific databases.| :x: |
2424
|`action`|The database action, e.g. `query`|

0 commit comments

Comments
 (0)