You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generated/attributes/all.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,8 @@ Total attributes: 423
49
49
|[`db.namespace`](./db.md#dbnamespace)| The name of the database being accessed. |
50
50
|[`db.operation.name`](./db.md#dboperationname)| The name of the operation being executed. |
51
51
|[`db.query.parameter.\<key\>`](./db.md#dbqueryparameterkey)| A query parameter used in db.query.text, with <key> being the parameter name, and the attribute value being a string representation of the parameter value. |
52
-
|[`db.query.summary`](./db.md#dbquerysummary)| A database query being executed. Should be paramaterized. The full version of the query is in `db.query.text`. |
53
-
|[`db.query.text`](./db.md#dbquerytext)| The database query being executed. Should be the full query, not a parameterized version. The parameterized version is in `db.query.summary`. |
52
+
|[`db.query.summary`](./db.md#dbquerysummary)| A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names. |
53
+
|[`db.query.text`](./db.md#dbquerytext)| The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value. |
54
54
|[`db.redis.connection`](./db.md#dbredisconnection)| The redis connection name. |
55
55
|[`db.redis.parameters`](./db.md#dbredisparameters)| The array of command parameters given to a redis command. |
56
56
|[`db.system.name`](./db.md#dbsystemname)| An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers. |
Copy file name to clipboardExpand all lines: generated/attributes/db.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,25 +71,25 @@ A query parameter used in db.query.text, with \<key\> being the parameter name,
71
71
72
72
### db.query.summary
73
73
74
-
A database query being executed. Should be paramaterized. The full version of the query is in `db.query.text`.
74
+
A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.
75
75
76
76
| Property | Value |
77
77
| --- | --- |
78
78
| Type |`string`|
79
79
| Has PII | maybe |
80
80
| Exists in OpenTelemetry | Yes |
81
-
| Example |`SELECT * FROM users`|
81
+
| Example |`SELECT users;`|
82
82
83
83
### db.query.text
84
84
85
-
The database query being executed. Should be the full query, not a parameterized version. The parameterized version is in `db.query.summary`.
85
+
The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.\<key\>` to add the parameter value.
* A database query being executed. Should be paramaterized. The full version of the query is in `db.query.text`. `db.query.summary`
1394
+
* A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names. `db.query.summary`
1395
1395
*
1396
1396
* Attribute Value Type: `string` {@link DB_QUERY_SUMMARY_TYPE}
1397
1397
*
1398
1398
* Contains PII: maybe
1399
1399
*
1400
1400
* Attribute defined in OTEL: Yes
1401
1401
*
1402
-
* @example "SELECT * FROM users"
1402
+
* @example "SELECT users;"
1403
1403
*/
1404
1404
exportconstDB_QUERY_SUMMARY='db.query.summary';
1405
1405
@@ -1411,7 +1411,7 @@ export type DB_QUERY_SUMMARY_TYPE = string;
1411
1411
// Path: model/attributes/db/db__query__text.json
1412
1412
1413
1413
/**
1414
-
* The database query being executed. Should be the full query, not a parameterized version. The parameterized version is in `db.query.summary`. `db.query.text`
1414
+
* The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value. `db.query.text`
1415
1415
*
1416
1416
* Attribute Value Type: `string` {@link DB_QUERY_TEXT_TYPE}
1417
1417
*
@@ -1421,7 +1421,7 @@ export type DB_QUERY_SUMMARY_TYPE = string;
'A database query being executed. Should be paramaterized. The full version of the query is in `db.query.text`.',
10411
+
'A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.',
10412
10412
type: 'string',
10413
10413
pii: {
10414
10414
isPii: 'maybe',
10415
10415
},
10416
10416
isInOtel: true,
10417
-
example: 'SELECT * FROM users',
10417
+
example: 'SELECT users;',
10418
10418
},
10419
10419
[DB_QUERY_TEXT]: {
10420
10420
brief:
10421
-
'The database query being executed. Should be the full query, not a parameterized version. The parameterized version is in `db.query.summary`.',
10421
+
'The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value.',
"brief": "A database query being executed. Should be paramaterized. The full version of the query is in `db.query.text`.",
3
+
"brief": "A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.",
"brief": "The database query being executed. Should be the full query, not a parameterized version. The parameterized version is in `db.query.summary`.",
3
+
"brief": "The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value.",
"""A database query being executed. Should be paramaterized. The full version of the query is in `db.query.text`.
904
+
"""A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.
"""The database query being executed. Should be the full query, not a parameterized version. The parameterized version is in `db.query.summary`.
914
+
"""The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value.
@@ -5367,18 +5367,18 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
5367
5367
example="db.query.parameter.foo='123'",
5368
5368
),
5369
5369
"db.query.summary": AttributeMetadata(
5370
-
brief="A database query being executed. Should be paramaterized. The full version of the query is in `db.query.text`.",
5370
+
brief="A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.",
5371
5371
type=AttributeType.STRING,
5372
5372
pii=PiiInfo(isPii=IsPii.MAYBE),
5373
5373
is_in_otel=True,
5374
-
example="SELECT * FROM users",
5374
+
example="SELECT users;",
5375
5375
),
5376
5376
"db.query.text": AttributeMetadata(
5377
-
brief="The database query being executed. Should be the full query, not a parameterized version. The parameterized version is in `db.query.summary`.",
5377
+
brief="The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value.",
0 commit comments