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: docs/database/redis.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Instrumentations SHOULD document how `error.type` is populated.
74
74
75
75
**[9]`db.operation.batch.size`:** Operations are only considered batches when they contain two or more operations, and so `db.operation.batch.size` SHOULD never be `1`.
76
76
77
-
**[10]`db.query.text`:** For **Redis**, the value provided for `db.query.text` SHOULD correspond to the syntax of the Redis CLI. If, for example, the [`HMSET` command](https://redis.io/commands/hmset) is invoked, `"HMSET myhash field1 'Hello' field2 'World'"` would be a suitable value for `db.query.text`.
77
+
**[10]`db.query.text`:** For **Redis**, the value provided for `db.query.text` SHOULD correspond to the syntax of the Redis CLI. If, for example, the [`HMSET` command](https://redis.io/docs/latest/commands/hmset) is invoked, `"HMSET myhash field1 'Hello' field2 'World'"` would be a suitable value for `db.query.text`.
78
78
79
79
**[11]`db.query.text`:** Non-parameterized query text SHOULD NOT be collected by default unless there is sanitization that excludes sensitive data, e.g. by redacting all literal values present in the query text.
80
80
See [Sanitization of `db.query.text`](../../docs/database/database-spans.md#sanitization-of-dbquerytext).
Copy file name to clipboardexpand all lines: model/database/spans.yaml
+1-1
Original file line number
Diff line number
Diff line change
@@ -403,7 +403,7 @@ groups:
403
403
see [`db.operation.parameter.<key>`](../../docs/attributes-registry/db.md)).
404
404
note: >
405
405
For **Redis**, the value provided for `db.query.text` SHOULD correspond to the syntax of the Redis CLI.
406
-
If, for example, the [`HMSET` command](https://redis.io/commands/hmset) is invoked, `"HMSET myhash field1 'Hello' field2 'World'"` would be a suitable value for `db.query.text`.
406
+
If, for example, the [`HMSET` command](https://redis.io/docs/latest/commands/hmset) is invoked, `"HMSET myhash field1 'Hello' field2 'World'"` would be a suitable value for `db.query.text`.
407
407
- ref: network.peer.address
408
408
brief: Peer address of the database node where the operation was performed.
description :=sprintf("Attribute definition '%s' has requirement_level set to %s. Only attribute references can set requirement_level.", [attr.id, attr.requirement_level])
71
71
}
72
72
73
+
# We require attribute definitions to have stability
74
+
deny contains attr_registry_violation(description, group.id, attr.id) if {
75
+
group := input.groups[_]
76
+
attr := group.attributes[_]
77
+
not attr.stability
78
+
description :=sprintf("Attribute definition '%s' does not contain stability field. All attribute definitions must include stability level.", [attr.id])
79
+
}
80
+
81
+
# We require span, metrics, events, resources definitions to have stability
82
+
deny contains attr_registry_violation(description, group.id, "") if {
0 commit comments