Skip to content

Commit

Permalink
Clarification on span name cardinality
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWert authored Apr 27, 2021
1 parent 71ac1b2 commit 4fb26f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specs/agents/tracing-instrumentation-db.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The following fields are relevant for database and datastore spans. Where possib

| Field | Description | Mandatory |
|-------|-------------|:---------:|
|`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: |
|`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: |
|`type`|For database spans, the type should be `db`.| :white_check_mark:|
|`subtype`|For database spans, the subtype should be the database vendor name. See details below for specific databases.| :x: |
|`action`|The database action, e.g. `query`|
Expand Down

0 comments on commit 4fb26f4

Please sign in to comment.