@opentelemetry/instrumentation-aws-sdk 0.60.0 → 0.61.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,173 @@
1
+ /**
2
+ * The JSON-serialized value of each item in the `AttributeDefinitions` request field.
3
+ *
4
+ * @example ["{ "AttributeName": "string", "AttributeType": "string" }"]
5
+ *
6
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
7
+ */
8
+ export declare const ATTR_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS: "aws.dynamodb.attribute_definitions";
9
+ /**
10
+ * The value of the `ConsistentRead` request parameter.
11
+ *
12
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
13
+ */
14
+ export declare const ATTR_AWS_DYNAMODB_CONSISTENT_READ: "aws.dynamodb.consistent_read";
15
+ /**
16
+ * The JSON-serialized value of each item in the `ConsumedCapacity` response field.
17
+ *
18
+ * @example ["{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }"]
19
+ *
20
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
21
+ */
22
+ export declare const ATTR_AWS_DYNAMODB_CONSUMED_CAPACITY: "aws.dynamodb.consumed_capacity";
23
+ /**
24
+ * The value of the `Count` response parameter.
25
+ *
26
+ * @example 10
27
+ *
28
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
29
+ */
30
+ export declare const ATTR_AWS_DYNAMODB_COUNT: "aws.dynamodb.count";
31
+ /**
32
+ * The value of the `ExclusiveStartTableName` request parameter.
33
+ *
34
+ * @example Users
35
+ * @example CatsTable
36
+ *
37
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
38
+ */
39
+ export declare const ATTR_AWS_DYNAMODB_EXCLUSIVE_START_TABLE: "aws.dynamodb.exclusive_start_table";
40
+ /**
41
+ * The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field
42
+ *
43
+ * @example ["{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"]
44
+ *
45
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
46
+ */
47
+ export declare const ATTR_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES: "aws.dynamodb.global_secondary_indexes";
48
+ /**
49
+ * The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field.
50
+ *
51
+ * @example ["{ "Create": { "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }"]
52
+ *
53
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
54
+ */
55
+ export declare const ATTR_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES: "aws.dynamodb.global_secondary_index_updates";
56
+ /**
57
+ * The value of the `IndexName` request parameter.
58
+ *
59
+ * @example name_to_group
60
+ *
61
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
62
+ */
63
+ export declare const ATTR_AWS_DYNAMODB_INDEX_NAME: "aws.dynamodb.index_name";
64
+ /**
65
+ * The JSON-serialized value of the `ItemCollectionMetrics` response field.
66
+ *
67
+ * @example { "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }
68
+ *
69
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
70
+ */
71
+ export declare const ATTR_AWS_DYNAMODB_ITEM_COLLECTION_METRICS: "aws.dynamodb.item_collection_metrics";
72
+ /**
73
+ * The value of the `Limit` request parameter.
74
+ *
75
+ * @example 10
76
+ *
77
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
78
+ */
79
+ export declare const ATTR_AWS_DYNAMODB_LIMIT: "aws.dynamodb.limit";
80
+ /**
81
+ * The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field.
82
+ *
83
+ * @example ["{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" } }"]
84
+ *
85
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
86
+ */
87
+ export declare const ATTR_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES: "aws.dynamodb.local_secondary_indexes";
88
+ /**
89
+ * The value of the `ProjectionExpression` request parameter.
90
+ *
91
+ * @example Title
92
+ * @example Title, Price, Color
93
+ * @example Title, Description, RelatedItems, ProductReviews
94
+ *
95
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
96
+ */
97
+ export declare const ATTR_AWS_DYNAMODB_PROJECTION: "aws.dynamodb.projection";
98
+ /**
99
+ * The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
100
+ *
101
+ * @example 1.0
102
+ * @example 2.0
103
+ *
104
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
105
+ */
106
+ export declare const ATTR_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY: "aws.dynamodb.provisioned_read_capacity";
107
+ /**
108
+ * The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter.
109
+ *
110
+ * @example 1.0
111
+ * @example 2.0
112
+ *
113
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
114
+ */
115
+ export declare const ATTR_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY: "aws.dynamodb.provisioned_write_capacity";
116
+ /**
117
+ * The value of the `ScannedCount` response parameter.
118
+ *
119
+ * @example 50
120
+ *
121
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
122
+ */
123
+ export declare const ATTR_AWS_DYNAMODB_SCANNED_COUNT: "aws.dynamodb.scanned_count";
124
+ /**
125
+ * The value of the `ScanIndexForward` request parameter.
126
+ *
127
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
128
+ */
129
+ export declare const ATTR_AWS_DYNAMODB_SCAN_FORWARD: "aws.dynamodb.scan_forward";
130
+ /**
131
+ * The value of the `Segment` request parameter.
132
+ *
133
+ * @example 10
134
+ *
135
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
136
+ */
137
+ export declare const ATTR_AWS_DYNAMODB_SEGMENT: "aws.dynamodb.segment";
138
+ /**
139
+ * The value of the `Select` request parameter.
140
+ *
141
+ * @example ALL_ATTRIBUTES
142
+ * @example COUNT
143
+ *
144
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
145
+ */
146
+ export declare const ATTR_AWS_DYNAMODB_SELECT: "aws.dynamodb.select";
147
+ /**
148
+ * The number of items in the `TableNames` response parameter.
149
+ *
150
+ * @example 20
151
+ *
152
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
153
+ */
154
+ export declare const ATTR_AWS_DYNAMODB_TABLE_COUNT: "aws.dynamodb.table_count";
155
+ /**
156
+ * The keys in the `RequestItems` object field.
157
+ *
158
+ * @example ["Users", "Cats"]
159
+ *
160
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
161
+ */
162
+ export declare const ATTR_AWS_DYNAMODB_TABLE_NAMES: "aws.dynamodb.table_names";
163
+ /**
164
+ * The value of the `TotalSegments` request parameter.
165
+ *
166
+ * @example 100
167
+ *
168
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
169
+ */
170
+ export declare const ATTR_AWS_DYNAMODB_TOTAL_SEGMENTS: "aws.dynamodb.total_segments";
1
171
  /**
2
172
  * The ARN of the Secret stored in the Secrets Mangger
3
173
  *
@@ -30,6 +200,76 @@ export declare const ATTR_AWS_STEP_FUNCTIONS_ACTIVITY_ARN: "aws.step_functions.a
30
200
  * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
31
201
  */
32
202
  export declare const ATTR_AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN: "aws.step_functions.state_machine.arn";
203
+ /**
204
+ * Deprecated, use `db.namespace` instead.
205
+ *
206
+ * @example customers
207
+ * @example main
208
+ *
209
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
210
+ *
211
+ * @deprecated Replaced by `db.namespace`.
212
+ */
213
+ export declare const ATTR_DB_NAME: "db.name";
214
+ /**
215
+ * Deprecated, use `db.operation.name` instead.
216
+ *
217
+ * @example findAndModify
218
+ * @example HMSET
219
+ * @example SELECT
220
+ *
221
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
222
+ *
223
+ * @deprecated Replaced by `db.operation.name`.
224
+ */
225
+ export declare const ATTR_DB_OPERATION: "db.operation";
226
+ /**
227
+ * The database statement being executed.
228
+ *
229
+ * @example SELECT * FROM wuser_table
230
+ * @example SET mykey "WuValue"
231
+ *
232
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
233
+ *
234
+ * @deprecated Replaced by `db.query.text`.
235
+ */
236
+ export declare const ATTR_DB_STATEMENT: "db.statement";
237
+ /**
238
+ * Deprecated, use `db.system.name` instead.
239
+ *
240
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
241
+ *
242
+ * @deprecated Replaced by `db.system.name`.
243
+ */
244
+ export declare const ATTR_DB_SYSTEM: "db.system";
245
+ /**
246
+ * The name of the invoked function.
247
+ *
248
+ * @example "my-function"
249
+ *
250
+ * @note **SHOULD** be equal to the `faas.name` resource attribute of the invoked function.
251
+ *
252
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
253
+ */
254
+ export declare const ATTR_FAAS_INVOKED_NAME: "faas.invoked_name";
255
+ /**
256
+ * The cloud provider of the invoked function.
257
+ *
258
+ * @note **SHOULD** be equal to the `cloud.provider` resource attribute of the invoked function.
259
+ *
260
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
261
+ */
262
+ export declare const ATTR_FAAS_INVOKED_PROVIDER: "faas.invoked_provider";
263
+ /**
264
+ * The cloud region of the invoked function.
265
+ *
266
+ * @example "eu-central-1"
267
+ *
268
+ * @note **SHOULD** be equal to the `cloud.region` resource attribute of the invoked function.
269
+ *
270
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
271
+ */
272
+ export declare const ATTR_FAAS_INVOKED_REGION: "faas.invoked_region";
33
273
  /**
34
274
  * The name of the operation being performed.
35
275
  *
@@ -88,23 +328,11 @@ export declare const ATTR_GEN_AI_REQUEST_TOP_P: "gen_ai.request.top_p";
88
328
  */
89
329
  export declare const ATTR_GEN_AI_RESPONSE_FINISH_REASONS: "gen_ai.response.finish_reasons";
90
330
  /**
91
- * The Generative AI product as identified by the client or server instrumentation.
92
- *
93
- * @example "openai"
94
- *
95
- * @note The `gen_ai.system` describes a family of GenAI models with specific model identified
96
- * by `gen_ai.request.model` and `gen_ai.response.model` attributes.
97
- *
98
- * The actual GenAI product may differ from the one identified by the client.
99
- * Multiple systems, including Azure OpenAI and Gemini, are accessible by OpenAI client
100
- * libraries. In such cases, the `gen_ai.system` is set to `openai` based on the
101
- * instrumentation's best knowledge, instead of the actual system. The `server.address`
102
- * attribute may help identify the actual system in use for `openai`.
103
- *
104
- * For custom model, a custom friendly name **SHOULD** be used.
105
- * If none of these options apply, the `gen_ai.system` **SHOULD** be set to `_OTHER`.
331
+ * Deprecated, use `gen_ai.provider.name` instead.
106
332
  *
107
333
  * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
334
+ *
335
+ * @deprecated Replaced by `gen_ai.provider.name`.
108
336
  */
109
337
  export declare const ATTR_GEN_AI_SYSTEM: "gen_ai.system";
110
338
  /**
@@ -132,6 +360,16 @@ export declare const ATTR_GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens"
132
360
  * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
133
361
  */
134
362
  export declare const ATTR_GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens";
363
+ /**
364
+ * Deprecated, use `http.response.status_code` instead.
365
+ *
366
+ * @example 200
367
+ *
368
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
369
+ *
370
+ * @deprecated Replaced by `http.response.status_code`.
371
+ */
372
+ export declare const ATTR_HTTP_STATUS_CODE: "http.status_code";
135
373
  /**
136
374
  * The number of messages sent, received, or processed in the scope of the batching operation.
137
375
  *
@@ -164,6 +402,18 @@ export declare const ATTR_MESSAGING_DESTINATION_NAME: "messaging.destination.nam
164
402
  * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
165
403
  */
166
404
  export declare const ATTR_MESSAGING_MESSAGE_ID: "messaging.message.id";
405
+ /**
406
+ * Deprecated, use `messaging.operation.type` instead.
407
+ *
408
+ * @example publish
409
+ * @example create
410
+ * @example process
411
+ *
412
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
413
+ *
414
+ * @deprecated Replaced by `messaging.operation.type`.
415
+ */
416
+ export declare const ATTR_MESSAGING_OPERATION: "messaging.operation";
167
417
  /**
168
418
  * A string identifying the type of the messaging operation.
169
419
  *
@@ -171,6 +421,48 @@ export declare const ATTR_MESSAGING_MESSAGE_ID: "messaging.message.id";
171
421
  * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
172
422
  */
173
423
  export declare const ATTR_MESSAGING_OPERATION_TYPE: "messaging.operation.type";
424
+ /**
425
+ * The messaging system as identified by the client instrumentation.
426
+ *
427
+ * @note The actual messaging system may differ from the one known by the client. For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system` is set to `kafka` based on the instrumentation's best knowledge.
428
+ *
429
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
430
+ */
431
+ export declare const ATTR_MESSAGING_SYSTEM: "messaging.system";
432
+ /**
433
+ * The name of the (logical) method being called, must be equal to the $method part in the span name.
434
+ *
435
+ * @example "exampleMethod"
436
+ *
437
+ * @note This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The `code.function.name` attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side).
438
+ *
439
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
440
+ */
441
+ export declare const ATTR_RPC_METHOD: "rpc.method";
442
+ /**
443
+ * The full (logical) name of the service being called, including its package name, if applicable.
444
+ *
445
+ * @example "myservice.EchoService"
446
+ *
447
+ * @note This is the logical name of the service from the RPC interface perspective, which can be different from the name of any implementing class. The `code.namespace` attribute may be used to store the latter (despite the attribute name, it may include a class name; e.g., class with method actually executing the call on the server side, RPC client stub class on the client side).
448
+ *
449
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
450
+ */
451
+ export declare const ATTR_RPC_SERVICE: "rpc.service";
452
+ /**
453
+ * A string identifying the remoting system. See below for a list of well-known identifiers.
454
+ *
455
+ * @experimental This attribute is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
456
+ */
457
+ export declare const ATTR_RPC_SYSTEM: "rpc.system";
458
+ /**
459
+ * Enum value "dynamodb" for attribute {@link ATTR_DB_SYSTEM}.
460
+ *
461
+ * Amazon DynamoDB
462
+ *
463
+ * @experimental This enum value is experimental and is subject to breaking changes in minor releases of `@opentelemetry/semantic-conventions`.
464
+ */
465
+ export declare const DB_SYSTEM_VALUE_DYNAMODB: "dynamodb";
174
466
  /**
175
467
  * Enum value "chat" for attribute {@link ATTR_GEN_AI_OPERATION_NAME}.
176
468
  *