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
| <aid="db-cosmosdb-regions-contacted"href="#db-cosmosdb-regions-contacted">`db.cosmosdb.regions_contacted`</a> | string[]| Deprecated, use `azure.cosmosdb.operation.contacted_regions` instead. |`["North Central US", "Australia East", "Australia Southeast"]`|<br>Replaced by `azure.cosmosdb.operation.contacted_regions`. |
186
186
| <aid="db-cosmosdb-request-charge"href="#db-cosmosdb-request-charge">`db.cosmosdb.request_charge`</a> | double | Deprecated, use `azure.cosmosdb.operation.request_charge` instead. |`46.18`; `1.0`|<br>Replaced by `azure.cosmosdb.operation.request_charge`. |
187
187
| <aid="db-cosmosdb-request-content-length"href="#db-cosmosdb-request-content-length">`db.cosmosdb.request_content_length`</a> | int | Deprecated, use `azure.cosmosdb.request.body.size` instead. ||<br>Replaced by `azure.cosmosdb.request.body.size`. |
188
-
| <aid="db-cosmosdb-status-code"href="#db-cosmosdb-status-code">`db.cosmosdb.status_code`</a> | int | Deprecated, use `db.response.status_code` instead. |`200`; `201`|<br>Replaced by `db.response.status_code`. |
188
+
| <aid="db-cosmosdb-status-code"href="#db-cosmosdb-status-code">`db.cosmosdb.status_code`</a> | int | Deprecated, use `db.response.status_code` instead. |`200`; `201`|<br>Uncategorized. |
189
189
| <aid="db-cosmosdb-sub-status-code"href="#db-cosmosdb-sub-status-code">`db.cosmosdb.sub_status_code`</a> | int | Deprecated, use `azure.cosmosdb.response.sub_status_code` instead. |`1000`; `1002`|<br>Replaced by `azure.cosmosdb.response.sub_status_code`. |
190
190
| <aid="db-elasticsearch-cluster-name"href="#db-elasticsearch-cluster-name">`db.elasticsearch.cluster.name`</a> | string | Deprecated, use `db.namespace` instead. |`e9106fc68e3044f0b1475b04bf4ffd5f`|<br>Replaced by `db.namespace`. |
191
191
| <aid="db-elasticsearch-node-name"href="#db-elasticsearch-node-name">`db.elasticsearch.node.name`</a> | string | Deprecated, use `elasticsearch.node.name` instead. |`instance-0000000001`|<br>Replaced by `elasticsearch.node.name`. |
| <aid="db-mssql-instance-name"href="#db-mssql-instance-name">`db.mssql.instance_name`</a> | string | Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute. |`MSSQLSERVER`|<br>Removed, no replacement at this time. |
197
197
| <aid="db-name"href="#db-name">`db.name`</a> | string | Deprecated, use `db.namespace` instead. |`customers`; `main`|<br>Replaced by `db.namespace`. |
198
198
| <aid="db-operation"href="#db-operation">`db.operation`</a> | string | Deprecated, use `db.operation.name` instead. |`findAndModify`; `HMSET`; `SELECT`|<br>Replaced by `db.operation.name`. |
199
-
| <aid="db-redis-database-index"href="#db-redis-database-index">`db.redis.database_index`</a> | int | Deprecated, use `db.namespace` instead. |`0`; `1`; `15`|<br>Replaced by `db.namespace`. |
199
+
| <aid="db-redis-database-index"href="#db-redis-database-index">`db.redis.database_index`</a> | int | Deprecated, use `db.namespace` instead. |`0`; `1`; `15`|<br>Uncategorized. |
200
200
| <aid="db-sql-table"href="#db-sql-table">`db.sql.table`</a> | string | Deprecated, use `db.collection.name` instead. |`mytable`|<br>Replaced by `db.collection.name`, but only if not extracting the value from `db.query.text`. |
201
201
| <aid="db-statement"href="#db-statement">`db.statement`</a> | string | The database statement being executed. |`SELECT * FROM wuser_table`; `SET mykey "WuValue"`|<br>Replaced by `db.query.text`. |
202
202
| <aid="db-system"href="#db-system">`db.system`</a> | string | Deprecated, use `db.system.name` instead. |`other_sql`; `adabas`; `intersystems_cache`|<br>Replaced by `db.system.name`. |
| <aid="enduser-scope"href="#enduser-scope">`enduser.scope`</a> | string | Deprecated, no replacement at this time. |`read:message, write:files`|<br>Removed, no replacement at this time. |
**[14]:** This refers to the 'generativelanguage.googleapis.com' endpoint. Also known as the AI Studio API. May use common attributes prefixed with 'gcp.gen_ai.'.
| <aid="messaging-destination-publish-name"href="#messaging-destination-publish-name">`messaging.destination_publish.name`</a> | string | Deprecated, no replacement at this time. |`MyQueue`; `MyTopic`|<br>Removed. No replacement at this time. |
195
195
| <aid="messaging-eventhubs-consumer-group"href="#messaging-eventhubs-consumer-group">`messaging.eventhubs.consumer.group`</a> | string | Deprecated, use `messaging.consumer.group.name` instead. |`$Default`|<br>Replaced by `messaging.consumer.group.name`. |
196
196
| <aid="messaging-kafka-consumer-group"href="#messaging-kafka-consumer-group">`messaging.kafka.consumer.group`</a> | string | Deprecated, use `messaging.consumer.group.name` instead. |`my-group`|<br>Replaced by `messaging.consumer.group.name`. |
197
-
| <aid="messaging-kafka-destination-partition"href="#messaging-kafka-destination-partition">`messaging.kafka.destination.partition`</a> | int | Deprecated, use `messaging.destination.partition.id` instead. |`2`|<br>Replaced by `messaging.destination.partition.id`. |
197
+
| <aid="messaging-kafka-destination-partition"href="#messaging-kafka-destination-partition">`messaging.kafka.destination.partition`</a> | int | Deprecated, use `messaging.destination.partition.id` instead. |`2`|<br>Record string representation of the partition id in `messaging.destination.partition.id` attribute. |
198
198
| <aid="messaging-kafka-message-offset"href="#messaging-kafka-message-offset">`messaging.kafka.message.offset`</a> | int | Deprecated, use `messaging.kafka.offset` instead. |`42`|<br>Replaced by `messaging.kafka.offset`. |
199
199
| <aid="messaging-operation"href="#messaging-operation">`messaging.operation`</a> | string | Deprecated, use `messaging.operation.type` instead. |`publish`; `create`; `process`|<br>Replaced by `messaging.operation.type`. |
200
200
| <aid="messaging-rocketmq-client-group"href="#messaging-rocketmq-client-group">`messaging.rocketmq.client_group`</a> | string | Deprecated, use `messaging.consumer.group.name` instead. |`myConsumerGroup`|<br>Replaced by `messaging.consumer.group.name` on the consumer spans. No replacement for producer spans. |
description :=sprintf("Attribute '%s' was renamed to '%s', but the new attribute does not exist or is deprecated.", [attr.name, attr.deprecated.renamed_to])
32
40
}
33
41
42
+
# attribute.deprecated.renamed_to attribute must be of the same type
43
+
deny contains deprecation_violation(description, group.id, "") if {
description :=sprintf("Attribute '%s' was renamed to '%s', but the new attribute type '%s' is not the same as the old attribute type '%s'.", [attr.name, attr.deprecated.renamed_to, new_type, attr.type])
57
+
}
58
+
59
+
# attribute.deprecated.renamed_to: string to enum of strings is ok
60
+
deny contains deprecation_violation(description, group.id, "") if {
description :=sprintf("String attribute '%s' was renamed to enum attribute '%s', but the new attribute member type '%s' is not a string type", [attr.name, attr.deprecated.renamed_to, new_type.members[0].value])
73
+
}
74
+
75
+
# attribute.deprecated.renamed_to: int to enum of ints is ok
76
+
deny contains deprecation_violation(description, group.id, "") if {
description :=sprintf("Int attribute '%s' was renamed to enum attribute '%s', but the new attribute member type '%s' is not a number", [attr.name, attr.deprecated.renamed_to, new_type.members[0].value])
89
+
}
90
+
91
+
# enum attribute.deprecated.renamed_to: enum of the same value types is ok
92
+
deny contains deprecation_violation(description, group.id, "") if {
description :=sprintf("Enum attribute '%s' with string values was renamed to '%s', but the new attribute type is '%s'.", [attr.name, attr.deprecated.renamed_to, new_type])
123
+
}
124
+
125
+
# enum attribute.deprecated.renamed_to: enum of ints to int is ok
126
+
deny contains deprecation_violation(description, group.id, "") if {
description :=sprintf("Enum attribute '%s' with int values was renamed to '%s', but the new attribute type is '%s'.", [attr.name, attr.deprecated.renamed_to, new_type])
139
+
}
140
+
141
+
# attribute.members.deprecated.renamed_to member must be a member of the same enum
142
+
deny contains deprecation_violation(description, group.id, "") if {
143
+
group := input.groups[_]
144
+
startswith(group.id, "registry.")
145
+
attr := group.attributes[_]
146
+
attr.type.members !=null
147
+
member := attr.type.members[_]
148
+
member.deprecated.renamed_to !=null
149
+
150
+
matches := [m.id |
151
+
m := attr.type.members[_]
152
+
m.id == member.deprecated.renamed_to
153
+
object.get(m, "deprecated", null) ==null
154
+
]
155
+
count(matches) ==0
156
+
157
+
description :=sprintf("Member '%s' of the attribute '%s' was renamed to '%s', but the new member does not exist or is deprecated.", [member.id,
158
+
attr.name, member.deprecated.renamed_to])
159
+
}
160
+
34
161
# metric.deprecated.renamed_to must be another metric
35
162
deny contains deprecation_violation(description, group.id, "") if {
0 commit comments