-
Notifications
You must be signed in to change notification settings - Fork 20
/
DbIncubatingAttributes.java
501 lines (382 loc) · 16.4 KB
/
DbIncubatingAttributes.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.semconv.incubating;
import static io.opentelemetry.api.common.AttributeKey.booleanKey;
import static io.opentelemetry.api.common.AttributeKey.doubleKey;
import static io.opentelemetry.api.common.AttributeKey.longKey;
import static io.opentelemetry.api.common.AttributeKey.stringKey;
import static io.opentelemetry.semconv.AttributeKeyTemplate.stringKeyTemplate;
import io.opentelemetry.api.common.AttributeKey;
import io.opentelemetry.semconv.AttributeKeyTemplate;
// DO NOT EDIT, this is an Auto-generated file from
// buildscripts/templates/SemanticAttributes.java.j2
@SuppressWarnings("unused")
public final class DbIncubatingAttributes {
/**
* The consistency level of the query. Based on consistency values from <a
* href="https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html">CQL</a>.
*/
public static final AttributeKey<String> DB_CASSANDRA_CONSISTENCY_LEVEL =
stringKey("db.cassandra.consistency_level");
/** The data center of the coordinating node for a query. */
public static final AttributeKey<String> DB_CASSANDRA_COORDINATOR_DC =
stringKey("db.cassandra.coordinator.dc");
/** The ID of the coordinating node for a query. */
public static final AttributeKey<String> DB_CASSANDRA_COORDINATOR_ID =
stringKey("db.cassandra.coordinator.id");
/** Whether or not the query is idempotent. */
public static final AttributeKey<Boolean> DB_CASSANDRA_IDEMPOTENCE =
booleanKey("db.cassandra.idempotence");
/** The fetch size used for paging, i.e. how many rows will be returned at once. */
public static final AttributeKey<Long> DB_CASSANDRA_PAGE_SIZE = longKey("db.cassandra.page_size");
/**
* The number of times a query was speculatively executed. Not set or {@code 0} if the query was
* not executed speculatively.
*/
public static final AttributeKey<Long> DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT =
longKey("db.cassandra.speculative_execution_count");
/**
* The name of the primary Cassandra table that the operation is acting upon, including the
* keyspace name (if applicable).
*
* <p>Notes:
*
* <ul>
* <li>This mirrors the db.sql.table attribute but references cassandra rather than sql. It is
* not recommended to attempt any client-side parsing of {@code db.statement} just to get
* this property, but it should be set if it is provided by the library being instrumented.
* If the operation is acting upon an anonymous table, or more than one table, this value
* MUST NOT be set.
* </ul>
*/
public static final AttributeKey<String> DB_CASSANDRA_TABLE = stringKey("db.cassandra.table");
/**
* Deprecated, use {@code server.address}, {@code server.port} attributes instead.
*
* @deprecated Deprecated, use `server.address`, `server.port` attributes instead.
*/
@Deprecated
public static final AttributeKey<String> DB_CONNECTION_STRING = stringKey("db.connection_string");
/** Unique Cosmos client instance id. */
public static final AttributeKey<String> DB_COSMOSDB_CLIENT_ID =
stringKey("db.cosmosdb.client_id");
/** Cosmos client connection mode. */
public static final AttributeKey<String> DB_COSMOSDB_CONNECTION_MODE =
stringKey("db.cosmosdb.connection_mode");
/** Cosmos DB container name. */
public static final AttributeKey<String> DB_COSMOSDB_CONTAINER =
stringKey("db.cosmosdb.container");
/** CosmosDB Operation Type. */
public static final AttributeKey<String> DB_COSMOSDB_OPERATION_TYPE =
stringKey("db.cosmosdb.operation_type");
/** RU consumed for that operation */
public static final AttributeKey<Double> DB_COSMOSDB_REQUEST_CHARGE =
doubleKey("db.cosmosdb.request_charge");
/** Request payload size in bytes */
public static final AttributeKey<Long> DB_COSMOSDB_REQUEST_CONTENT_LENGTH =
longKey("db.cosmosdb.request_content_length");
/** Cosmos DB status code. */
public static final AttributeKey<Long> DB_COSMOSDB_STATUS_CODE =
longKey("db.cosmosdb.status_code");
/** Cosmos DB sub status code. */
public static final AttributeKey<Long> DB_COSMOSDB_SUB_STATUS_CODE =
longKey("db.cosmosdb.sub_status_code");
/** Represents the identifier of an Elasticsearch cluster. */
public static final AttributeKey<String> DB_ELASTICSEARCH_CLUSTER_NAME =
stringKey("db.elasticsearch.cluster.name");
/**
* Deprecated, use {@code db.instance.id} instead.
*
* @deprecated Deprecated, use `db.instance.id` instead.
*/
@Deprecated
public static final AttributeKey<String> DB_ELASTICSEARCH_NODE_NAME =
stringKey("db.elasticsearch.node.name");
/**
* A dynamic value in the url path.
*
* <p>Notes:
*
* <ul>
* <li>Many Elasticsearch url paths allow dynamic values. These SHOULD be recorded in span
* attributes in the format {@code db.elasticsearch.path_parts.<key>}, where {@code <key>}
* is the url path part name. The implementation SHOULD reference the <a
* href="https://raw.githubusercontent.com/elastic/elasticsearch-specification/main/output/schema/schema.json">elasticsearch
* schema</a> in order to map the path part values to their names.
* </ul>
*/
public static final AttributeKeyTemplate<String> DB_ELASTICSEARCH_PATH_PARTS =
stringKeyTemplate("db.elasticsearch.path_parts");
/**
* An identifier (address, unique name, or any other identifier) of the database instance that is
* executing queries or mutations on the current connection. This is useful in cases where the
* database is running in a clustered environment and the instrumentation is able to record the
* node executing the query. The client may obtain this value in databases like MySQL using
* queries like {@code select @@hostname}.
*/
public static final AttributeKey<String> DB_INSTANCE_ID = stringKey("db.instance.id");
/**
* Removed, no replacement at this time.
*
* @deprecated Removed, no replacement at this time.
*/
@Deprecated
public static final AttributeKey<String> DB_JDBC_DRIVER_CLASSNAME =
stringKey("db.jdbc.driver_classname");
/** The MongoDB collection being accessed within the database stated in {@code db.name}. */
public static final AttributeKey<String> DB_MONGODB_COLLECTION =
stringKey("db.mongodb.collection");
/**
* The Microsoft SQL Server <a
* href="https://docs.microsoft.com/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15">instance
* name</a> connecting to. This name is used to determine the port of a named instance.
*
* <p>Notes:
*
* <ul>
* <li>If setting a {@code db.mssql.instance_name}, {@code server.port} is no longer required
* (but still recommended if non-standard).
* </ul>
*/
public static final AttributeKey<String> DB_MSSQL_INSTANCE_NAME =
stringKey("db.mssql.instance_name");
/**
* This attribute is used to report the name of the database being accessed. For commands that
* switch the database, this should be set to the target database (even if the command fails).
*
* <p>Notes:
*
* <ul>
* <li>In some SQL databases, the database name to be used is called "schema name". In
* case there are multiple layers that could be considered for database name (e.g. Oracle
* instance name and schema name), the database name to be used is the more specific layer
* (e.g. Oracle schema name).
* </ul>
*/
public static final AttributeKey<String> DB_NAME = stringKey("db.name");
/**
* The name of the operation being executed, e.g. the <a
* href="https://docs.mongodb.com/manual/reference/command/#database-operations">MongoDB command
* name</a> such as {@code findAndModify}, or the SQL keyword.
*
* <p>Notes:
*
* <ul>
* <li>When setting this to an SQL keyword, it is not recommended to attempt any client-side
* parsing of {@code db.statement} just to get this property, but it should be set if the
* operation name is provided by the library being instrumented. If the SQL statement has an
* ambiguous operation, or performs more than one operation, this value may be omitted.
* </ul>
*/
public static final AttributeKey<String> DB_OPERATION = stringKey("db.operation");
/**
* The index of the database being accessed as used in the <a
* href="https://redis.io/commands/select">{@code SELECT} command</a>, provided as an integer. To
* be used instead of the generic {@code db.name} attribute.
*/
public static final AttributeKey<Long> DB_REDIS_DATABASE_INDEX =
longKey("db.redis.database_index");
/**
* The name of the primary table that the operation is acting upon, including the database name
* (if applicable).
*
* <p>Notes:
*
* <ul>
* <li>It is not recommended to attempt any client-side parsing of {@code db.statement} just to
* get this property, but it should be set if it is provided by the library being
* instrumented. If the operation is acting upon an anonymous table, or more than one table,
* this value MUST NOT be set.
* </ul>
*/
public static final AttributeKey<String> DB_SQL_TABLE = stringKey("db.sql.table");
/** The database statement being executed. */
public static final AttributeKey<String> DB_STATEMENT = stringKey("db.statement");
/**
* An identifier for the database management system (DBMS) product being used. See below for a
* list of well-known identifiers.
*/
public static final AttributeKey<String> DB_SYSTEM = stringKey("db.system");
/** Username for accessing the database. */
public static final AttributeKey<String> DB_USER = stringKey("db.user");
// Enum definitions
/** Values for {@link #DB_CASSANDRA_CONSISTENCY_LEVEL}. */
public static final class DbCassandraConsistencyLevelValues {
/** all. */
public static final String ALL = "all";
/** each_quorum. */
public static final String EACH_QUORUM = "each_quorum";
/** quorum. */
public static final String QUORUM = "quorum";
/** local_quorum. */
public static final String LOCAL_QUORUM = "local_quorum";
/** one. */
public static final String ONE = "one";
/** two. */
public static final String TWO = "two";
/** three. */
public static final String THREE = "three";
/** local_one. */
public static final String LOCAL_ONE = "local_one";
/** any. */
public static final String ANY = "any";
/** serial. */
public static final String SERIAL = "serial";
/** local_serial. */
public static final String LOCAL_SERIAL = "local_serial";
private DbCassandraConsistencyLevelValues() {}
}
/** Values for {@link #DB_COSMOSDB_CONNECTION_MODE}. */
public static final class DbCosmosdbConnectionModeValues {
/** Gateway (HTTP) connections mode. */
public static final String GATEWAY = "gateway";
/** Direct connection. */
public static final String DIRECT = "direct";
private DbCosmosdbConnectionModeValues() {}
}
/** Values for {@link #DB_COSMOSDB_OPERATION_TYPE}. */
public static final class DbCosmosdbOperationTypeValues {
/** invalid. */
public static final String INVALID = "Invalid";
/** create. */
public static final String CREATE = "Create";
/** patch. */
public static final String PATCH = "Patch";
/** read. */
public static final String READ = "Read";
/** read_feed. */
public static final String READ_FEED = "ReadFeed";
/** delete. */
public static final String DELETE = "Delete";
/** replace. */
public static final String REPLACE = "Replace";
/** execute. */
public static final String EXECUTE = "Execute";
/** query. */
public static final String QUERY = "Query";
/** head. */
public static final String HEAD = "Head";
/** head_feed. */
public static final String HEAD_FEED = "HeadFeed";
/** upsert. */
public static final String UPSERT = "Upsert";
/** batch. */
public static final String BATCH = "Batch";
/** query_plan. */
public static final String QUERY_PLAN = "QueryPlan";
/** execute_javascript. */
public static final String EXECUTE_JAVASCRIPT = "ExecuteJavaScript";
private DbCosmosdbOperationTypeValues() {}
}
/** Values for {@link #DB_SYSTEM}. */
public static final class DbSystemValues {
/** Some other SQL database. Fallback only. See notes. */
public static final String OTHER_SQL = "other_sql";
/** Microsoft SQL Server. */
public static final String MSSQL = "mssql";
/** Microsoft SQL Server Compact. */
public static final String MSSQLCOMPACT = "mssqlcompact";
/** MySQL. */
public static final String MYSQL = "mysql";
/** Oracle Database. */
public static final String ORACLE = "oracle";
/** IBM Db2. */
public static final String DB2 = "db2";
/** PostgreSQL. */
public static final String POSTGRESQL = "postgresql";
/** Amazon Redshift. */
public static final String REDSHIFT = "redshift";
/** Apache Hive. */
public static final String HIVE = "hive";
/** Cloudscape. */
public static final String CLOUDSCAPE = "cloudscape";
/** HyperSQL DataBase. */
public static final String HSQLDB = "hsqldb";
/** Progress Database. */
public static final String PROGRESS = "progress";
/** SAP MaxDB. */
public static final String MAXDB = "maxdb";
/** SAP HANA. */
public static final String HANADB = "hanadb";
/** Ingres. */
public static final String INGRES = "ingres";
/** FirstSQL. */
public static final String FIRSTSQL = "firstsql";
/** EnterpriseDB. */
public static final String EDB = "edb";
/** InterSystems Caché. */
public static final String CACHE = "cache";
/** Adabas (Adaptable Database System). */
public static final String ADABAS = "adabas";
/** Firebird. */
public static final String FIREBIRD = "firebird";
/** Apache Derby. */
public static final String DERBY = "derby";
/** FileMaker. */
public static final String FILEMAKER = "filemaker";
/** Informix. */
public static final String INFORMIX = "informix";
/** InstantDB. */
public static final String INSTANTDB = "instantdb";
/** InterBase. */
public static final String INTERBASE = "interbase";
/** MariaDB. */
public static final String MARIADB = "mariadb";
/** Netezza. */
public static final String NETEZZA = "netezza";
/** Pervasive PSQL. */
public static final String PERVASIVE = "pervasive";
/** PointBase. */
public static final String POINTBASE = "pointbase";
/** SQLite. */
public static final String SQLITE = "sqlite";
/** Sybase. */
public static final String SYBASE = "sybase";
/** Teradata. */
public static final String TERADATA = "teradata";
/** Vertica. */
public static final String VERTICA = "vertica";
/** H2. */
public static final String H2 = "h2";
/** ColdFusion IMQ. */
public static final String COLDFUSION = "coldfusion";
/** Apache Cassandra. */
public static final String CASSANDRA = "cassandra";
/** Apache HBase. */
public static final String HBASE = "hbase";
/** MongoDB. */
public static final String MONGODB = "mongodb";
/** Redis. */
public static final String REDIS = "redis";
/** Couchbase. */
public static final String COUCHBASE = "couchbase";
/** CouchDB. */
public static final String COUCHDB = "couchdb";
/** Microsoft Azure Cosmos DB. */
public static final String COSMOSDB = "cosmosdb";
/** Amazon DynamoDB. */
public static final String DYNAMODB = "dynamodb";
/** Neo4j. */
public static final String NEO4J = "neo4j";
/** Apache Geode. */
public static final String GEODE = "geode";
/** Elasticsearch. */
public static final String ELASTICSEARCH = "elasticsearch";
/** Memcached. */
public static final String MEMCACHED = "memcached";
/** CockroachDB. */
public static final String COCKROACHDB = "cockroachdb";
/** OpenSearch. */
public static final String OPENSEARCH = "opensearch";
/** ClickHouse. */
public static final String CLICKHOUSE = "clickhouse";
/** Cloud Spanner. */
public static final String SPANNER = "spanner";
/** Trino. */
public static final String TRINO = "trino";
private DbSystemValues() {}
}
private DbIncubatingAttributes() {}
}