From 843e7a7f96f74a4671d2025cf7e02a552daac1d2 Mon Sep 17 00:00:00 2001 From: Armen Zambrano G <44410+armenzg@users.noreply.github.com> Date: Mon, 7 Jul 2025 15:51:37 -0400 Subject: [PATCH 1/2] Refresh generated attributes --- shared/deprecated_attributes.json | 241 +++++++++++++++++++++++------- 1 file changed, 184 insertions(+), 57 deletions(-) diff --git a/shared/deprecated_attributes.json b/shared/deprecated_attributes.json index 0060d321..f339db52 100644 --- a/shared/deprecated_attributes.json +++ b/shared/deprecated_attributes.json @@ -14,7 +14,9 @@ "_status": null, "replacement": "sentry.environment" }, - "alias": ["sentry.environment"] + "alias": [ + "sentry.environment" + ] }, { "key": "fs_error", @@ -30,7 +32,9 @@ "reason": "This attribute is not part of the OpenTelemetry specification and error.type fits much better." }, "example": "ENOENT: no such file or directory", - "sdks": ["javascript-node"] + "sdks": [ + "javascript-node" + ] }, { "key": "method", @@ -45,8 +49,13 @@ "_status": null, "replacement": "http.request.method" }, - "alias": ["http.request.method"], - "sdks": ["javascript-browser", "javascript-node"] + "alias": [ + "http.request.method" + ], + "sdks": [ + "javascript-browser", + "javascript-node" + ] }, { "key": "profile_id", @@ -61,7 +70,9 @@ "_status": null, "replacement": "sentry.profile_id" }, - "alias": ["sentry.profile_id"] + "alias": [ + "sentry.profile_id" + ] }, { "key": "release", @@ -76,7 +87,9 @@ "_status": null, "replacement": "sentry.release" }, - "alias": ["sentry.release"] + "alias": [ + "sentry.release" + ] }, { "key": "replay_id", @@ -91,7 +104,9 @@ "_status": null, "replacement": "sentry.replay_id" }, - "alias": ["sentry.replay_id"] + "alias": [ + "sentry.replay_id" + ] }, { "key": "route", @@ -106,8 +121,13 @@ "_status": null, "replacement": "http.route" }, - "alias": ["http.route"], - "sdks": ["php-laravel", "javascript-reactnative"] + "alias": [ + "http.route" + ], + "sdks": [ + "php-laravel", + "javascript-reactnative" + ] }, { "key": "transaction", @@ -122,7 +142,9 @@ "_status": null, "replacement": "sentry.transaction" }, - "alias": ["sentry.transaction"] + "alias": [ + "sentry.transaction" + ] }, { "key": "url", @@ -137,8 +159,14 @@ "_status": null, "replacement": "url.full" }, - "alias": ["url.full", "http.url"], - "sdks": ["javascript-browser", "javascript-node"] + "alias": [ + "url.full", + "http.url" + ], + "sdks": [ + "javascript-browser", + "javascript-node" + ] }, { "key": "ai.completion_tokens.used", @@ -149,8 +177,13 @@ }, "is_in_otel": false, "example": 10, - "alias": ["gen_ai.usage.output_tokens", "gen_ai.usage.completion_tokens"], - "sdks": ["python"], + "alias": [ + "gen_ai.usage.output_tokens", + "gen_ai.usage.completion_tokens" + ], + "sdks": [ + "python" + ], "deprecation": { "_status": null, "replacement": "gen_ai.usage.output_tokens" @@ -221,8 +254,13 @@ }, "is_in_otel": false, "example": "[{\"role\": \"user\", \"message\": \"hello\"}]", - "alias": ["gen_ai.prompt", "gen_ai.request.messages"], - "sdks": ["python"], + "alias": [ + "gen_ai.prompt", + "gen_ai.request.messages" + ], + "sdks": [ + "python" + ], "deprecation": { "_status": null, "replacement": "gen_ai.request.messages" @@ -251,8 +289,12 @@ }, "is_in_otel": false, "example": "gpt-4", - "alias": ["gen_ai.response.model"], - "sdks": ["python"], + "alias": [ + "gen_ai.response.model" + ], + "sdks": [ + "python" + ], "deprecation": { "_status": null, "replacement": "gen_ai.response.model" @@ -281,8 +323,13 @@ }, "is_in_otel": false, "example": 20, - "alias": ["gen_ai.usage.prompt_tokens", "gen_ai.usage.input_tokens"], - "sdks": ["python"], + "alias": [ + "gen_ai.usage.prompt_tokens", + "gen_ai.usage.input_tokens" + ], + "sdks": [ + "python" + ], "deprecation": { "_status": null, "replacement": "gen_ai.usage.input_tokens" @@ -296,8 +343,13 @@ "key": "false" }, "is_in_otel": false, - "example": ["hello", "world"], - "sdks": ["python"], + "example": [ + "hello", + "world" + ], + "sdks": [ + "python" + ], "deprecation": { "_status": null, "replacement": "gen_ai.response.text" @@ -339,7 +391,10 @@ "key": "true" }, "is_in_otel": false, - "example": ["tool_call_1", "tool_call_2"], + "example": [ + "tool_call_1", + "tool_call_2" + ], "deprecation": { "_status": null, "replacement": "gen_ai.response.tool_calls" @@ -353,7 +408,10 @@ "key": "false" }, "is_in_otel": false, - "example": ["function_1", "function_2"], + "example": [ + "function_1", + "function_2" + ], "deprecation": { "_status": null, "replacement": "gen_ai.request.available_tools" @@ -396,7 +454,9 @@ }, "is_in_otel": false, "example": 30, - "sdks": ["python"], + "sdks": [ + "python" + ], "deprecation": { "_status": null, "replacement": "gen_ai.usage.total_tokens" @@ -415,7 +475,9 @@ "_status": null, "replacement": "code.file.path" }, - "alias": ["code.file.path"] + "alias": [ + "code.file.path" + ] }, { "key": "code.function", @@ -430,7 +492,9 @@ "_status": null, "replacement": "code.function.name" }, - "alias": ["code.function.name"] + "alias": [ + "code.function.name" + ] }, { "key": "code.lineno", @@ -445,7 +509,9 @@ "_status": null, "replacement": "code.line.number" }, - "alias": ["code.lineno"] + "alias": [ + "code.lineno" + ] }, { "key": "code.namespace", @@ -475,7 +541,9 @@ "_status": null, "replacement": "db.namespace" }, - "alias": ["db.namespace"] + "alias": [ + "db.namespace" + ] }, { "key": "db.operation", @@ -490,7 +558,9 @@ "_status": null, "replacement": "db.operation.name" }, - "alias": ["db.operation.name"] + "alias": [ + "db.operation.name" + ] }, { "key": "db.sql.bindings", @@ -505,8 +575,13 @@ "replacement": "db.query.parameter.", "reason": "Instead of adding every binding in the db.sql.bindings attribute, add them as individual entires with db.query.parameter.." }, - "example": ["1", "foo"], - "sdks": ["php-laravel"] + "example": [ + "1", + "foo" + ], + "sdks": [ + "php-laravel" + ] }, { "key": "db.statement", @@ -521,7 +596,9 @@ "_status": null, "replacement": "db.query.text" }, - "alias": ["db.query.text"] + "alias": [ + "db.query.text" + ] }, { "key": "db.system", @@ -536,7 +613,9 @@ "_status": null, "replacement": "db.system.name" }, - "alias": ["db.system.name"] + "alias": [ + "db.system.name" + ] }, { "key": "gen_ai.usage.completion_tokens", @@ -551,7 +630,10 @@ "_status": null, "replacement": "gen_ai.usage.output_tokens" }, - "alias": ["ai.completion_tokens.used", "gen_ai.usage.output_tokens"] + "alias": [ + "ai.completion_tokens.used", + "gen_ai.usage.output_tokens" + ] }, { "key": "gen_ai.usage.prompt_tokens", @@ -566,7 +648,10 @@ "_status": null, "replacement": "gen_ai.usage.input_tokens" }, - "alias": ["ai.prompt_tokens.used", "gen_ai.usage.input_tokens"] + "alias": [ + "ai.prompt_tokens.used", + "gen_ai.usage.input_tokens" + ] }, { "key": "http.client_ip", @@ -581,7 +666,9 @@ "_status": null, "replacement": "http.client_ip" }, - "alias": ["client.address"] + "alias": [ + "client.address" + ] }, { "key": "http.flavor", @@ -596,7 +683,9 @@ "_status": null, "replacement": "network.protocol.version" }, - "alias": ["network.protocol.version"] + "alias": [ + "network.protocol.version" + ] }, { "key": "http.host", @@ -612,7 +701,10 @@ "replacement": "server.address", "reason": "Deprecated, use one of `server.address` or `client.address`, depending on the usage" }, - "alias": ["server.address", "client.address"] + "alias": [ + "server.address", + "client.address" + ] }, { "key": "http.method", @@ -627,7 +719,9 @@ "_status": null, "replacement": "http.request.method" }, - "alias": ["http.request.method"] + "alias": [ + "http.request.method" + ] }, { "key": "http.response_content_length", @@ -661,7 +755,9 @@ "_status": "backfill", "replacement": "http.response.size" }, - "alias": ["http.response.size"] + "alias": [ + "http.response.size" + ] }, { "key": "http.scheme", @@ -676,7 +772,9 @@ "_status": null, "replacement": "url.scheme" }, - "alias": ["url.scheme"] + "alias": [ + "url.scheme" + ] }, { "key": "http.server_name", @@ -691,7 +789,9 @@ "_status": null, "replacement": "server.address" }, - "alias": ["server.address"] + "alias": [ + "server.address" + ] }, { "key": "http.status_code", @@ -706,7 +806,9 @@ "_status": null, "replacement": "http.response.status_code" }, - "alias": ["http.response.status_code"] + "alias": [ + "http.response.status_code" + ] }, { "key": "http.target", @@ -736,7 +838,10 @@ "_status": null, "replacement": "url.full" }, - "alias": ["url.full", "http.url"] + "alias": [ + "url.full", + "http.url" + ] }, { "key": "http.user_agent", @@ -751,7 +856,9 @@ "_status": null, "replacement": "user_agent.original" }, - "alias": ["user_agent.original"] + "alias": [ + "user_agent.original" + ] }, { "key": "net.host.ip", @@ -766,7 +873,9 @@ "_status": null, "replacement": "network.local.address" }, - "alias": ["network.local.address"] + "alias": [ + "network.local.address" + ] }, { "key": "net.host.name", @@ -781,7 +890,9 @@ "_status": null, "replacement": "server.address" }, - "alias": ["server.address"] + "alias": [ + "server.address" + ] }, { "key": "net.host.port", @@ -796,7 +907,9 @@ "_status": null, "replacement": "server.port" }, - "alias": ["server.port"] + "alias": [ + "server.port" + ] }, { "key": "net.peer.ip", @@ -811,7 +924,9 @@ "_status": null, "replacement": "network.peer.address" }, - "alias": ["network.peer.address"] + "alias": [ + "network.peer.address" + ] }, { "key": "net.peer.name", @@ -856,7 +971,9 @@ "_status": null, "replacement": "network.protocol.name" }, - "alias": ["network.protocol.name"] + "alias": [ + "network.protocol.name" + ] }, { "key": "net.protocol.version", @@ -871,7 +988,9 @@ "_status": null, "replacement": "network.protocol.version" }, - "alias": ["network.protocol.version"] + "alias": [ + "network.protocol.version" + ] }, { "key": "net.sock.family", @@ -901,7 +1020,9 @@ "_status": null, "replacement": "network.local.address" }, - "alias": ["network.local.address"] + "alias": [ + "network.local.address" + ] }, { "key": "net.sock.host.port", @@ -916,7 +1037,9 @@ "_status": null, "replacement": "network.local.port" }, - "alias": ["network.local.port"] + "alias": [ + "network.local.port" + ] }, { "key": "net.sock.peer.addr", @@ -931,7 +1054,9 @@ "_status": null, "replacement": "network.peer.address" }, - "alias": ["network.peer.address"] + "alias": [ + "network.peer.address" + ] }, { "key": "net.sock.peer.name", @@ -975,7 +1100,9 @@ "_status": null, "replacement": "network.transport" }, - "alias": ["network.transport"] + "alias": [ + "network.transport" + ] }, { "key": "query.", @@ -994,4 +1121,4 @@ "example": "query.id='123'" } ] -} +} \ No newline at end of file From da186cca46b80065ea622d6a0fcf3d2a83d3271a Mon Sep 17 00:00:00 2001 From: Armen Zambrano G <44410+armenzg@users.noreply.github.com> Date: Mon, 7 Jul 2025 16:01:00 -0400 Subject: [PATCH 2/2] Formatting --- shared/deprecated_attributes.json | 241 +++++++----------------------- 1 file changed, 57 insertions(+), 184 deletions(-) diff --git a/shared/deprecated_attributes.json b/shared/deprecated_attributes.json index f339db52..0060d321 100644 --- a/shared/deprecated_attributes.json +++ b/shared/deprecated_attributes.json @@ -14,9 +14,7 @@ "_status": null, "replacement": "sentry.environment" }, - "alias": [ - "sentry.environment" - ] + "alias": ["sentry.environment"] }, { "key": "fs_error", @@ -32,9 +30,7 @@ "reason": "This attribute is not part of the OpenTelemetry specification and error.type fits much better." }, "example": "ENOENT: no such file or directory", - "sdks": [ - "javascript-node" - ] + "sdks": ["javascript-node"] }, { "key": "method", @@ -49,13 +45,8 @@ "_status": null, "replacement": "http.request.method" }, - "alias": [ - "http.request.method" - ], - "sdks": [ - "javascript-browser", - "javascript-node" - ] + "alias": ["http.request.method"], + "sdks": ["javascript-browser", "javascript-node"] }, { "key": "profile_id", @@ -70,9 +61,7 @@ "_status": null, "replacement": "sentry.profile_id" }, - "alias": [ - "sentry.profile_id" - ] + "alias": ["sentry.profile_id"] }, { "key": "release", @@ -87,9 +76,7 @@ "_status": null, "replacement": "sentry.release" }, - "alias": [ - "sentry.release" - ] + "alias": ["sentry.release"] }, { "key": "replay_id", @@ -104,9 +91,7 @@ "_status": null, "replacement": "sentry.replay_id" }, - "alias": [ - "sentry.replay_id" - ] + "alias": ["sentry.replay_id"] }, { "key": "route", @@ -121,13 +106,8 @@ "_status": null, "replacement": "http.route" }, - "alias": [ - "http.route" - ], - "sdks": [ - "php-laravel", - "javascript-reactnative" - ] + "alias": ["http.route"], + "sdks": ["php-laravel", "javascript-reactnative"] }, { "key": "transaction", @@ -142,9 +122,7 @@ "_status": null, "replacement": "sentry.transaction" }, - "alias": [ - "sentry.transaction" - ] + "alias": ["sentry.transaction"] }, { "key": "url", @@ -159,14 +137,8 @@ "_status": null, "replacement": "url.full" }, - "alias": [ - "url.full", - "http.url" - ], - "sdks": [ - "javascript-browser", - "javascript-node" - ] + "alias": ["url.full", "http.url"], + "sdks": ["javascript-browser", "javascript-node"] }, { "key": "ai.completion_tokens.used", @@ -177,13 +149,8 @@ }, "is_in_otel": false, "example": 10, - "alias": [ - "gen_ai.usage.output_tokens", - "gen_ai.usage.completion_tokens" - ], - "sdks": [ - "python" - ], + "alias": ["gen_ai.usage.output_tokens", "gen_ai.usage.completion_tokens"], + "sdks": ["python"], "deprecation": { "_status": null, "replacement": "gen_ai.usage.output_tokens" @@ -254,13 +221,8 @@ }, "is_in_otel": false, "example": "[{\"role\": \"user\", \"message\": \"hello\"}]", - "alias": [ - "gen_ai.prompt", - "gen_ai.request.messages" - ], - "sdks": [ - "python" - ], + "alias": ["gen_ai.prompt", "gen_ai.request.messages"], + "sdks": ["python"], "deprecation": { "_status": null, "replacement": "gen_ai.request.messages" @@ -289,12 +251,8 @@ }, "is_in_otel": false, "example": "gpt-4", - "alias": [ - "gen_ai.response.model" - ], - "sdks": [ - "python" - ], + "alias": ["gen_ai.response.model"], + "sdks": ["python"], "deprecation": { "_status": null, "replacement": "gen_ai.response.model" @@ -323,13 +281,8 @@ }, "is_in_otel": false, "example": 20, - "alias": [ - "gen_ai.usage.prompt_tokens", - "gen_ai.usage.input_tokens" - ], - "sdks": [ - "python" - ], + "alias": ["gen_ai.usage.prompt_tokens", "gen_ai.usage.input_tokens"], + "sdks": ["python"], "deprecation": { "_status": null, "replacement": "gen_ai.usage.input_tokens" @@ -343,13 +296,8 @@ "key": "false" }, "is_in_otel": false, - "example": [ - "hello", - "world" - ], - "sdks": [ - "python" - ], + "example": ["hello", "world"], + "sdks": ["python"], "deprecation": { "_status": null, "replacement": "gen_ai.response.text" @@ -391,10 +339,7 @@ "key": "true" }, "is_in_otel": false, - "example": [ - "tool_call_1", - "tool_call_2" - ], + "example": ["tool_call_1", "tool_call_2"], "deprecation": { "_status": null, "replacement": "gen_ai.response.tool_calls" @@ -408,10 +353,7 @@ "key": "false" }, "is_in_otel": false, - "example": [ - "function_1", - "function_2" - ], + "example": ["function_1", "function_2"], "deprecation": { "_status": null, "replacement": "gen_ai.request.available_tools" @@ -454,9 +396,7 @@ }, "is_in_otel": false, "example": 30, - "sdks": [ - "python" - ], + "sdks": ["python"], "deprecation": { "_status": null, "replacement": "gen_ai.usage.total_tokens" @@ -475,9 +415,7 @@ "_status": null, "replacement": "code.file.path" }, - "alias": [ - "code.file.path" - ] + "alias": ["code.file.path"] }, { "key": "code.function", @@ -492,9 +430,7 @@ "_status": null, "replacement": "code.function.name" }, - "alias": [ - "code.function.name" - ] + "alias": ["code.function.name"] }, { "key": "code.lineno", @@ -509,9 +445,7 @@ "_status": null, "replacement": "code.line.number" }, - "alias": [ - "code.lineno" - ] + "alias": ["code.lineno"] }, { "key": "code.namespace", @@ -541,9 +475,7 @@ "_status": null, "replacement": "db.namespace" }, - "alias": [ - "db.namespace" - ] + "alias": ["db.namespace"] }, { "key": "db.operation", @@ -558,9 +490,7 @@ "_status": null, "replacement": "db.operation.name" }, - "alias": [ - "db.operation.name" - ] + "alias": ["db.operation.name"] }, { "key": "db.sql.bindings", @@ -575,13 +505,8 @@ "replacement": "db.query.parameter.", "reason": "Instead of adding every binding in the db.sql.bindings attribute, add them as individual entires with db.query.parameter.." }, - "example": [ - "1", - "foo" - ], - "sdks": [ - "php-laravel" - ] + "example": ["1", "foo"], + "sdks": ["php-laravel"] }, { "key": "db.statement", @@ -596,9 +521,7 @@ "_status": null, "replacement": "db.query.text" }, - "alias": [ - "db.query.text" - ] + "alias": ["db.query.text"] }, { "key": "db.system", @@ -613,9 +536,7 @@ "_status": null, "replacement": "db.system.name" }, - "alias": [ - "db.system.name" - ] + "alias": ["db.system.name"] }, { "key": "gen_ai.usage.completion_tokens", @@ -630,10 +551,7 @@ "_status": null, "replacement": "gen_ai.usage.output_tokens" }, - "alias": [ - "ai.completion_tokens.used", - "gen_ai.usage.output_tokens" - ] + "alias": ["ai.completion_tokens.used", "gen_ai.usage.output_tokens"] }, { "key": "gen_ai.usage.prompt_tokens", @@ -648,10 +566,7 @@ "_status": null, "replacement": "gen_ai.usage.input_tokens" }, - "alias": [ - "ai.prompt_tokens.used", - "gen_ai.usage.input_tokens" - ] + "alias": ["ai.prompt_tokens.used", "gen_ai.usage.input_tokens"] }, { "key": "http.client_ip", @@ -666,9 +581,7 @@ "_status": null, "replacement": "http.client_ip" }, - "alias": [ - "client.address" - ] + "alias": ["client.address"] }, { "key": "http.flavor", @@ -683,9 +596,7 @@ "_status": null, "replacement": "network.protocol.version" }, - "alias": [ - "network.protocol.version" - ] + "alias": ["network.protocol.version"] }, { "key": "http.host", @@ -701,10 +612,7 @@ "replacement": "server.address", "reason": "Deprecated, use one of `server.address` or `client.address`, depending on the usage" }, - "alias": [ - "server.address", - "client.address" - ] + "alias": ["server.address", "client.address"] }, { "key": "http.method", @@ -719,9 +627,7 @@ "_status": null, "replacement": "http.request.method" }, - "alias": [ - "http.request.method" - ] + "alias": ["http.request.method"] }, { "key": "http.response_content_length", @@ -755,9 +661,7 @@ "_status": "backfill", "replacement": "http.response.size" }, - "alias": [ - "http.response.size" - ] + "alias": ["http.response.size"] }, { "key": "http.scheme", @@ -772,9 +676,7 @@ "_status": null, "replacement": "url.scheme" }, - "alias": [ - "url.scheme" - ] + "alias": ["url.scheme"] }, { "key": "http.server_name", @@ -789,9 +691,7 @@ "_status": null, "replacement": "server.address" }, - "alias": [ - "server.address" - ] + "alias": ["server.address"] }, { "key": "http.status_code", @@ -806,9 +706,7 @@ "_status": null, "replacement": "http.response.status_code" }, - "alias": [ - "http.response.status_code" - ] + "alias": ["http.response.status_code"] }, { "key": "http.target", @@ -838,10 +736,7 @@ "_status": null, "replacement": "url.full" }, - "alias": [ - "url.full", - "http.url" - ] + "alias": ["url.full", "http.url"] }, { "key": "http.user_agent", @@ -856,9 +751,7 @@ "_status": null, "replacement": "user_agent.original" }, - "alias": [ - "user_agent.original" - ] + "alias": ["user_agent.original"] }, { "key": "net.host.ip", @@ -873,9 +766,7 @@ "_status": null, "replacement": "network.local.address" }, - "alias": [ - "network.local.address" - ] + "alias": ["network.local.address"] }, { "key": "net.host.name", @@ -890,9 +781,7 @@ "_status": null, "replacement": "server.address" }, - "alias": [ - "server.address" - ] + "alias": ["server.address"] }, { "key": "net.host.port", @@ -907,9 +796,7 @@ "_status": null, "replacement": "server.port" }, - "alias": [ - "server.port" - ] + "alias": ["server.port"] }, { "key": "net.peer.ip", @@ -924,9 +811,7 @@ "_status": null, "replacement": "network.peer.address" }, - "alias": [ - "network.peer.address" - ] + "alias": ["network.peer.address"] }, { "key": "net.peer.name", @@ -971,9 +856,7 @@ "_status": null, "replacement": "network.protocol.name" }, - "alias": [ - "network.protocol.name" - ] + "alias": ["network.protocol.name"] }, { "key": "net.protocol.version", @@ -988,9 +871,7 @@ "_status": null, "replacement": "network.protocol.version" }, - "alias": [ - "network.protocol.version" - ] + "alias": ["network.protocol.version"] }, { "key": "net.sock.family", @@ -1020,9 +901,7 @@ "_status": null, "replacement": "network.local.address" }, - "alias": [ - "network.local.address" - ] + "alias": ["network.local.address"] }, { "key": "net.sock.host.port", @@ -1037,9 +916,7 @@ "_status": null, "replacement": "network.local.port" }, - "alias": [ - "network.local.port" - ] + "alias": ["network.local.port"] }, { "key": "net.sock.peer.addr", @@ -1054,9 +931,7 @@ "_status": null, "replacement": "network.peer.address" }, - "alias": [ - "network.peer.address" - ] + "alias": ["network.peer.address"] }, { "key": "net.sock.peer.name", @@ -1100,9 +975,7 @@ "_status": null, "replacement": "network.transport" }, - "alias": [ - "network.transport" - ] + "alias": ["network.transport"] }, { "key": "query.", @@ -1121,4 +994,4 @@ "example": "query.id='123'" } ] -} \ No newline at end of file +}