Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
584 changes: 526 additions & 58 deletions javascript/sentry-conventions/src/attributes.ts

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion model/attributes/aws/aws__request__url.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@
},
"is_in_otel": false,
"example": "https://sqs.us-east-1.amazonaws.com/123456789/my-queue",
"alias": ["url.full", "http.url", "url"],
"alias": ["url.full", "http.url", "url", "messaging.url"],
"deprecation": {
"_status": "backfill",
"replacement": "url.full",
"reason": "This attribute is being deprecated in favor of url.full, which is the OTel-aligned replacement."
},
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.url as an alias"
},
{
"version": "0.19.0",
"prs": [488],
Expand Down
22 changes: 22 additions & 0 deletions model/attributes/db/db__connection_string.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"key": "db.connection_string",
"brief": "The connection string used to connect to the database.",
"type": "string",
"apply_scrubbing": {
"key": "auto"
},
"is_in_otel": true,
Comment thread
JPeer264 marked this conversation as resolved.
"examples": ["redis://localhost:6379"],
"deprecation": {
"_status": null,
"reason": "This attribute is deprecated. The connection is described by server.address and server.port instead, so the value cannot be copied to a single replacement attribute."
Comment on lines +10 to +12

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call to not add a replacement here, since it's two attributes that make up for this one. Thanks!

},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [581],
"description": "Added db.connection_string attribute"
}
]
}
6 changes: 5 additions & 1 deletion model/attributes/http/http__flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
},
"is_in_otel": true,
"example": "1.1",
"alias": ["network.protocol.version", "net.protocol.version"],
"alias": ["network.protocol.version", "net.protocol.version", "messaging.protocol_version"],
"deprecation": {
"_status": "backfill",
"replacement": "network.protocol.version"
},
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.protocol_version as an alias"
},
{
"version": "0.1.0",
"prs": [61, 108, 127]
Expand Down
6 changes: 5 additions & 1 deletion model/attributes/http/http__url.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
},
"is_in_otel": true,
"example": "https://example.com/test?foo=bar#buzz",
"alias": ["url.full", "url", "aws.request.url"],
"alias": ["url.full", "url", "aws.request.url", "messaging.url"],
"deprecation": {
"_status": "backfill",
"replacement": "url.full"
},
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.url as an alias"
},
{
"version": "0.1.0",
"prs": [61, 108]
Expand Down
18 changes: 11 additions & 7 deletions model/attributes/mcp/mcp__resource__protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,18 @@
},
"is_in_otel": false,
"example": "file",
"alias": ["network.protocol.name", "net.protocol.name", "messaging.protocol"],
"deprecation": {
"_status": "backfill",
"replacement": "network.protocol.name",
"reason": "OTel uses the generic network.protocol.name attribute"
},
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.protocol as an alias"
},
{
"version": "0.12.0",
"prs": [420],
Expand All @@ -18,11 +28,5 @@
"version": "0.3.0",
"prs": [171]
}
],
"deprecation": {
"_status": "backfill",
"replacement": "network.protocol.name",
"reason": "OTel uses the generic network.protocol.name attribute"
},
"alias": ["network.protocol.name", "net.protocol.name"]
]
}
24 changes: 24 additions & 0 deletions model/attributes/messaging/messaging__conversation_id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "messaging.conversation_id",
"brief": "The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called \"Correlation ID\".",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"examples": ["MyConversationId"],
"alias": ["messaging.message.conversation_id"],
"deprecation": {
"_status": "backfill",
"replacement": "messaging.message.conversation_id",
"reason": "This attribute is being deprecated in favor of messaging.message.conversation_id."
},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [581],
"description": "Added messaging.conversation_id attribute"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
"key": "manual"
},
"is_in_otel": true,
"visibility": "public",
"example": "MyConversationId",
"alias": ["messaging.conversation_id"],
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.conversation_id as an alias"
},
{
"version": "0.16.0",
"prs": [468],
Expand Down
5 changes: 5 additions & 0 deletions model/attributes/messaging/messaging__message__id.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
},
"is_in_otel": true,
"example": "f47ac10b58cc4372a5670e02b2c3d479",
"alias": ["messaging.message_id"],
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.message_id as an alias"
},
{
"version": "0.1.0",
"prs": [127]
Expand Down
24 changes: 24 additions & 0 deletions model/attributes/messaging/messaging__message_id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "messaging.message_id",
"brief": "A value used by the messaging system as an identifier for the message, represented as a string.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"examples": ["452a7c7c7c7048c2f887f0e7"],
"alias": ["messaging.message.id"],
"deprecation": {
"_status": "backfill",
"replacement": "messaging.message.id",
"reason": "This attribute is being deprecated in favor of messaging.message.id."
},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [581],
"description": "Added messaging.message_id attribute"
}
]
}
24 changes: 24 additions & 0 deletions model/attributes/messaging/messaging__operation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "messaging.operation",
"brief": "The name of the messaging operation being performed.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"examples": ["publish"],
"alias": ["messaging.operation.name"],
"deprecation": {
"_status": "backfill",
"replacement": "messaging.operation.name",
"reason": "This attribute is being deprecated in favor of messaging.operation.name."
},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [581],
"description": "Added messaging.operation attribute"
}
]
}
5 changes: 5 additions & 0 deletions model/attributes/messaging/messaging__operation__name.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
},
"is_in_otel": true,
"example": "send",
"alias": ["messaging.operation"],
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.operation as an alias"
},
{
"version": "0.11.0",
"prs": [392],
Expand Down
24 changes: 24 additions & 0 deletions model/attributes/messaging/messaging__protocol.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "messaging.protocol",
"brief": "OSI application layer or non-OSI equivalent.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"examples": ["AMQP"],
"alias": ["network.protocol.name", "net.protocol.name", "mcp.resource.protocol"],
"deprecation": {
"_status": "backfill",
"replacement": "network.protocol.name",
"reason": "This attribute is being deprecated in favor of network.protocol.name."
},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [581],
"description": "Added messaging.protocol attribute"
}
]
}
24 changes: 24 additions & 0 deletions model/attributes/messaging/messaging__protocol_version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "messaging.protocol_version",
"brief": "The actual version of the protocol used for network communication.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"examples": ["0.9.1"],
"alias": ["network.protocol.version", "http.flavor", "net.protocol.version"],
"deprecation": {
"_status": "backfill",
"replacement": "network.protocol.version",
"reason": "This attribute is being deprecated in favor of network.protocol.version."
},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [581],
"description": "Added messaging.protocol_version attribute"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
"key": "manual"
},
"is_in_otel": true,
"visibility": "public",
"example": "myKey",
"alias": ["messaging.rabbitmq.routing_key"],
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.rabbitmq.routing_key as an alias"
},
{
"version": "0.16.0",
"prs": [468],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "messaging.rabbitmq.routing_key",
"brief": "RabbitMQ message routing key.",
"type": "string",
"apply_scrubbing": {
"key": "manual"
},
"is_in_otel": false,
"examples": ["myKey"],
"alias": ["messaging.rabbitmq.destination.routing_key"],
"deprecation": {
"_status": "backfill",
"replacement": "messaging.rabbitmq.destination.routing_key",
"reason": "This attribute is being deprecated in favor of messaging.rabbitmq.destination.routing_key."
},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [581],
"description": "Added messaging.rabbitmq.routing_key attribute"
}
]
}
24 changes: 24 additions & 0 deletions model/attributes/messaging/messaging__url.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"key": "messaging.url",
"brief": "The connection string of the messaging broker.",
"type": "string",
"apply_scrubbing": {
"key": "auto"
},
"is_in_otel": false,
"examples": ["amqp://guest:guest@localhost:5672"],
"alias": ["url.full", "http.url", "url", "aws.request.url"],
"deprecation": {
"_status": "backfill",
"replacement": "url.full",
"reason": "This attribute is being deprecated in favor of url.full."
},
"visibility": "public",
"changelog": [
{
"version": "next",
"prs": [581],
"description": "Added messaging.url attribute"
}
]
}
6 changes: 5 additions & 1 deletion model/attributes/net/net__protocol__name.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
},
"is_in_otel": true,
"example": "http",
"alias": ["network.protocol.name", "mcp.resource.protocol"],
"alias": ["network.protocol.name", "mcp.resource.protocol", "messaging.protocol"],
"deprecation": {
"_status": "backfill",
"replacement": "network.protocol.name"
},
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.protocol as an alias"
},
{
"version": "0.1.0",
"prs": [61, 127]
Expand Down
6 changes: 5 additions & 1 deletion model/attributes/net/net__protocol__version.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
},
"is_in_otel": true,
"example": "1.1",
"alias": ["network.protocol.version", "http.flavor"],
"alias": ["network.protocol.version", "http.flavor", "messaging.protocol_version"],
"deprecation": {
"_status": "backfill",
"replacement": "network.protocol.version"
},
"visibility": "public",
"changelog": [
{
"version": "next",
"description": "Added messaging.protocol_version as an alias"
},
{
"version": "0.1.0",
"prs": [61, 108, 127]
Expand Down
Loading
Loading