Skip to content

Commit 02733b0

Browse files
authored
ref: Ensure all aliases have a corresponding file (#106)
1 parent 8cb44c3 commit 02733b0

19 files changed

+110
-99
lines changed

generated/attributes/client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Client address - domain name if available without reverse DNS lookup; otherwise,
1818
| Has PII | false |
1919
| Exists in OpenTelemetry | Yes |
2020
| Example | `example.com` |
21-
| Aliases | `http.client_id` |
21+
| Aliases | `http.client_ip` |
2222

2323
### client.port
2424

generated/attributes/db.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ The name of a collection (table, container) within the database.
3232
| Has PII | false |
3333
| Exists in OpenTelemetry | Yes |
3434
| Example | `users` |
35-
| Aliases | `db.collection` |
3635

3736
### db.namespace
3837

generated/attributes/http.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ The encoded body size of the response (in bytes).
229229
| Has PII | false |
230230
| Exists in OpenTelemetry | Yes |
231231
| Example | `123` |
232-
| Aliases | `http.response_content_length`, `http.response.header.content-length`, `http.response.header['content-length']` |
232+
| Aliases | `http.response_content_length`, `http.response.header.content-length` |
233233

234234
### http.response.header.\<key\>
235235

@@ -305,7 +305,7 @@ Client address - domain name if available without reverse DNS lookup; otherwise,
305305
| Has PII | false |
306306
| Exists in OpenTelemetry | Yes |
307307
| Example | `example.com` |
308-
| Deprecated | Yes, use `http.client_ip` instead |
308+
| Deprecated | Yes, use `client.address` instead |
309309
| Aliases | `client.address` |
310310

311311
### http.flavor
@@ -359,7 +359,7 @@ The encoded body size of the response (in bytes).
359359
| Exists in OpenTelemetry | Yes |
360360
| Example | `123` |
361361
| Deprecated | Yes, use `http.response.body.size` instead |
362-
| Aliases | `http.response.body.size`, `http.response.header.content-length`, `http.response.header['content-length']` |
362+
| Aliases | `http.response.body.size`, `http.response.header.content-length` |
363363

364364
### http.response_transfer_size
365365

generated/attributes/sentry.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ A parameterized route for a function in Next.js that contributes to Server-Side
130130
| Has PII | false |
131131
| Exists in OpenTelemetry | No |
132132
| Example | `/posts/[id]/layout` |
133-
| Aliases | `sentry.nextjs.function.route` |
134133

135134
### sentry.nextjs.ssr.function.type
136135

@@ -142,7 +141,6 @@ A descriptor for a for a function in Next.js that contributes to Server-Side Ren
142141
| Has PII | false |
143142
| Exists in OpenTelemetry | No |
144143
| Example | `generateMetadata` |
145-
| Aliases | `sentry.nextjs.function.type` |
146144

147145
### sentry.op
148146

javascript/sentry-conventions/src/attributes.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ export type CHANNEL_TYPE = string;
979979
*
980980
* Attribute defined in OTEL: Yes
981981
*
982-
* Aliases: {@link HTTP_CLIENT_ID} `http.client_id`
982+
* Aliases: {@link HTTP_CLIENT_IP} `http.client_ip`
983983
*
984984
* @example "example.com"
985985
*/
@@ -1237,8 +1237,6 @@ export type CODE_NAMESPACE_TYPE = string;
12371237
*
12381238
* Attribute defined in OTEL: Yes
12391239
*
1240-
* Aliases: {@link DB_COLLECTION} `db.collection`
1241-
*
12421240
* @example "users"
12431241
*/
12441242
export const DB_COLLECTION_NAME = 'db.collection.name';
@@ -2908,7 +2906,7 @@ export type GRAPHQL_OPERATION_TYPE_TYPE = string;
29082906
*
29092907
* Aliases: {@link CLIENT_ADDRESS} `client.address`
29102908
*
2911-
* @deprecated Use {@link HTTP_CLIENT_IP} (http.client_ip) instead
2909+
* @deprecated Use {@link CLIENT_ADDRESS} (client.address) instead
29122910
* @example "example.com"
29132911
*/
29142912
export const HTTP_CLIENT_IP = 'http.client_ip';
@@ -3322,7 +3320,7 @@ export type HTTP_REQUEST_SECURE_CONNECTION_START_TYPE = number;
33223320
*
33233321
* Attribute defined in OTEL: Yes
33243322
*
3325-
* Aliases: {@link HTTP_RESPONSE_CONTENT_LENGTH} `http.response_content_length`, {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} `http.response.header.content-length`, {@link HTTP_RESPONSE_HEADER['CONTENT_LENGTH']} `http.response.header['content-length']`
3323+
* Aliases: {@link HTTP_RESPONSE_CONTENT_LENGTH} `http.response_content_length`, {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} `http.response.header.content-length`
33263324
*
33273325
* @example 123
33283326
*/
@@ -3432,7 +3430,7 @@ export type HTTP_RESPONSE_STATUS_CODE_TYPE = number;
34323430
*
34333431
* Attribute defined in OTEL: Yes
34343432
*
3435-
* Aliases: {@link HTTP_RESPONSE_BODY_SIZE} `http.response.body.size`, {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} `http.response.header.content-length`, {@link HTTP_RESPONSE_HEADER['CONTENT_LENGTH']} `http.response.header['content-length']`
3433+
* Aliases: {@link HTTP_RESPONSE_BODY_SIZE} `http.response.body.size`, {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} `http.response.header.content-length`
34363434
*
34373435
* @deprecated Use {@link HTTP_RESPONSE_BODY_SIZE} (http.response.body.size) instead
34383436
* @example 123
@@ -5389,8 +5387,6 @@ export type SENTRY_MODULE_KEY_TYPE = string;
53895387
*
53905388
* Attribute defined in OTEL: No
53915389
*
5392-
* Aliases: {@link SENTRY_NEXTJS_FUNCTION_ROUTE} `sentry.nextjs.function.route`
5393-
*
53945390
* @example "/posts/[id]/layout"
53955391
*/
53965392
export const SENTRY_NEXTJS_SSR_FUNCTION_ROUTE = 'sentry.nextjs.ssr.function.route';
@@ -5411,8 +5407,6 @@ export type SENTRY_NEXTJS_SSR_FUNCTION_ROUTE_TYPE = string;
54115407
*
54125408
* Attribute defined in OTEL: No
54135409
*
5414-
* Aliases: {@link SENTRY_NEXTJS_FUNCTION_TYPE} `sentry.nextjs.function.type`
5415-
*
54165410
* @example "generateMetadata"
54175411
*/
54185412
export const SENTRY_NEXTJS_SSR_FUNCTION_TYPE = 'sentry.nextjs.ssr.function.type';

model/attributes/client/client__address.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
},
88
"is_in_otel": true,
99
"example": "example.com",
10-
"alias": ["http.client_id"]
10+
"alias": ["http.client_ip"]
1111
}

model/attributes/db/db__collection__name.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
"key": "false"
77
},
88
"is_in_otel": true,
9-
"example": "users",
10-
"alias": ["db.collection"]
9+
"example": "users"
1110
}

model/attributes/http/http__client_ip.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"example": "example.com",
1010
"deprecation": {
1111
"_status": null,
12-
"replacement": "http.client_ip"
12+
"replacement": "client.address"
1313
},
1414
"alias": ["client.address"]
1515
}

model/attributes/http/http__response__body__size.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,5 @@
77
},
88
"is_in_otel": true,
99
"example": 123,
10-
"alias": [
11-
"http.response_content_length",
12-
"http.response.header.content-length",
13-
"http.response.header['content-length']"
14-
]
10+
"alias": ["http.response_content_length", "http.response.header.content-length"]
1511
}

model/attributes/http/http__response_content_length.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"_status": "backfill",
1212
"replacement": "http.response.body.size"
1313
},
14-
"alias": ["http.response.body.size", "http.response.header.content-length", "http.response.header['content-length']"]
14+
"alias": ["http.response.body.size", "http.response.header.content-length"]
1515
}

0 commit comments

Comments
 (0)