Skip to content

Commit

Permalink
[chore] Split db and messaging registry groups (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova authored Apr 24, 2024
1 parent 6af1ab4 commit 83369f2
Show file tree
Hide file tree
Showing 4 changed files with 347 additions and 346 deletions.
12 changes: 6 additions & 6 deletions docs/attributes-registry/db.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

## Generic Database Attributes

<!-- semconv registry.db(omit_requirement_level,tag=db-generic) -->
<!-- semconv registry.db(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `db.client.connections.pool.name` | string | The name of the connection pool; unique within the instrumented application. In case the connection pool implementation doesn't provide a name, instrumentation should use a combination of `server.address` and `server.port` attributes formatted as `server.address:server.port`. | `myDataSource` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand Down Expand Up @@ -105,7 +105,7 @@ If a parameter has no name and instead is referenced only by index, then `<key>`

## Cassandra Attributes

<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-cassandra) -->
<!-- semconv registry.db.cassandra(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `db.cassandra.consistency_level` | string | The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). | `all` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand Down Expand Up @@ -134,7 +134,7 @@ If a parameter has no name and instead is referenced only by index, then `<key>`

## CosmosDB Attributes

<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-cosmosdb) -->
<!-- semconv registry.db.cosmosdb(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `db.cosmosdb.client_id` | string | Unique Cosmos client instance id. | `3ba4827d-4422-483f-b59f-85b74211c11d` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand Down Expand Up @@ -175,7 +175,7 @@ If a parameter has no name and instead is referenced only by index, then `<key>`

## Elasticsearch Attributes

<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-elasticsearch) -->
<!-- semconv registry.db.elasticsearch(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `db.elasticsearch.cluster.name` | string | Represents the identifier of an Elasticsearch cluster. | `e9106fc68e3044f0b1475b04bf4ffd5f` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand All @@ -186,7 +186,7 @@ If a parameter has no name and instead is referenced only by index, then `<key>`

## MSSQL Attributes

<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-mssql) -->
<!-- semconv registry.db.mssql(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `db.mssql.instance_name` | string | The Microsoft SQL Server [instance name](https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15) connecting to. This name is used to determine the port of a named instance. [1] | `MSSQLSERVER` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand All @@ -196,7 +196,7 @@ If a parameter has no name and instead is referenced only by index, then `<key>`

## Redis Attributes

<!-- semconv registry.db(omit_requirement_level,tag=tech-specific-redis) -->
<!-- semconv registry.db.redis(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `db.redis.database_index` | int | The index of the database being accessed as used in the [`SELECT` command](https://redis.io/commands/select), provided as an integer. To be used instead of the generic `db.name` attribute. | `0`; `1`; `15` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand Down
16 changes: 8 additions & 8 deletions docs/attributes-registry/messaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

## Generic Messaging Attributes

<!-- semconv registry.messaging(omit_requirement_level,tag=messaging-generic) -->
<!-- semconv registry.messaging(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `messaging.batch.message_count` | int | The number of messages sent, received, or processed in the scope of the batching operation. [1] | `0`; `1`; `2` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand Down Expand Up @@ -84,15 +84,15 @@ size should be used.

## GCP Pub/Sub Attributes

<!-- semconv registry.messaging(omit_requirement_level,tag=tech-specific-gcp-pubsub) -->
<!-- semconv registry.messaging.gcp_pubsub(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `messaging.gcp_pubsub.message.ordering_key` | string | The ordering key for a given message. If the attribute is not present, the message does not have an ordering key. | `ordering_key` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
<!-- endsemconv -->

## Kafka Attributes

<!-- semconv registry.messaging(omit_requirement_level,tag=tech-specific-kafka) -->
<!-- semconv registry.messaging.kafka(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `messaging.kafka.consumer.group` | string | Name of the Kafka Consumer Group that is handling the message. Only applies to consumers, not producers. | `my-group` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand All @@ -105,7 +105,7 @@ size should be used.

## RabbitMQ Attributes

<!-- semconv registry.messaging(omit_requirement_level,tag=tech-specific-rabbitmq) -->
<!-- semconv registry.messaging.rabbitmq(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `messaging.rabbitmq.destination.routing_key` | string | RabbitMQ message routing key. | `myKey` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand All @@ -114,7 +114,7 @@ size should be used.

## RocketMQ Attributes

<!-- semconv registry.messaging(omit_requirement_level,tag=tech-specific-rocketmq) -->
<!-- semconv registry.messaging.rocketmq(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `messaging.rocketmq.client_group` | string | Name of the RocketMQ producer/consumer group that is handling the message. The client type is identified by the SpanKind. | `myConsumerGroup` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand Down Expand Up @@ -146,7 +146,7 @@ size should be used.

## Azure Event Hubs Attributes

<!-- semconv registry.messaging(omit_requirement_level,tag=tech-specific-eventhubs) -->
<!-- semconv registry.messaging.eventhubs(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `messaging.eventhubs.consumer.group` | string | The name of the consumer group the event consumer is associated with. | `indexer` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand All @@ -155,7 +155,7 @@ size should be used.

## Azure Service Bus Attributes

<!-- semconv registry.messaging(omit_requirement_level,tag=tech-specific-servicebus) -->
<!-- semconv registry.messaging.servicebus(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `messaging.servicebus.destination.subscription_name` | string | The name of the subscription in the topic messages are received from. | `mySubscription` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
Expand All @@ -175,7 +175,7 @@ size should be used.

## Deprecated Messaging Attributes

<!-- semconv registry.messaging.deprecated(omit_requirement_level) -->
<!-- semconv registry.messaging.deprecated(omit_requirement_level,full) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `messaging.kafka.destination.partition` | int | Deprecated, use `messaging.destination.partition.id` instead. | `2` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `messaging.destination.partition.id`. |
Expand Down
Loading

0 comments on commit 83369f2

Please sign in to comment.