Debian Codegraph @

semconv/v1.14.0/trace.go

raw
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3
4 // Code generated from semantic convention specification. DO NOT EDIT.
5
6 package semconv // import "go.opentelemetry.io/otel/semconv/v1.14.0"
7
8 import "go.opentelemetry.io/otel/attribute"
9
10 // This document defines the shared attributes used to report a single exception associated with a span or log.
11 const (
12 // The type of the exception (its fully-qualified class name, if applicable). The
13 // dynamic type of the exception should be preferred over the static type in
14 // languages that support it.
15 //
16 // Type: string
17 // RequirementLevel: Optional
18 // Stability: stable
19 // Examples: 'java.net.ConnectException', 'OSError'
20 ExceptionTypeKey = attribute.Key("exception.type")
21 // The exception message.
22 //
23 // Type: string
24 // RequirementLevel: Optional
25 // Stability: stable
26 // Examples: 'Division by zero', "Can't convert 'int' object to str implicitly"
27 ExceptionMessageKey = attribute.Key("exception.message")
28 // A stacktrace as a string in the natural representation for the language
29 // runtime. The representation is to be determined and documented by each language
30 // SIG.
31 //
32 // Type: string
33 // RequirementLevel: Optional
34 // Stability: stable
35 // Examples: 'Exception in thread "main" java.lang.RuntimeException: Test
36 // exception\\n at '
37 // 'com.example.GenerateTrace.methodB(GenerateTrace.java:13)\\n at '
38 // 'com.example.GenerateTrace.methodA(GenerateTrace.java:9)\\n at '
39 // 'com.example.GenerateTrace.main(GenerateTrace.java:5)'
40 ExceptionStacktraceKey = attribute.Key("exception.stacktrace")
41 )
42
43 // This document defines attributes for Events represented using Log Records.
44 const (
45 // The name identifies the event.
46 //
47 // Type: string
48 // RequirementLevel: Required
49 // Stability: stable
50 // Examples: 'click', 'exception'
51 EventNameKey = attribute.Key("event.name")
52 // The domain identifies the context in which an event happened. An event name is
53 // unique only within a domain.
54 //
55 // Type: Enum
56 // RequirementLevel: Required
57 // Stability: stable
58 // Note: An `event.name` is supposed to be unique only in the context of an
59 // `event.domain`, so this allows for two events in different domains to
60 // have same `event.name`, yet be unrelated events.
61 EventDomainKey = attribute.Key("event.domain")
62 )
63
64 var (
65 // Events from browser apps
66 EventDomainBrowser = EventDomainKey.String("browser")
67 // Events from mobile apps
68 EventDomainDevice = EventDomainKey.String("device")
69 // Events from Kubernetes
70 EventDomainK8S = EventDomainKey.String("k8s")
71 )
72
73 // Span attributes used by AWS Lambda (in addition to general `faas` attributes).
74 const (
75 // The full invoked ARN as provided on the `Context` passed to the function
76 // (`Lambda-Runtime-Invoked-Function-ARN` header on the `/runtime/invocation/next`
77 // applicable).
78 //
79 // Type: string
80 // RequirementLevel: Optional
81 // Stability: stable
82 // Examples: 'arn:aws:lambda:us-east-1:123456:function:myfunction:myalias'
83 // Note: This may be different from `faas.id` if an alias is involved.
84 AWSLambdaInvokedARNKey = attribute.Key("aws.lambda.invoked_arn")
85 )
86
87 // This document defines attributes for CloudEvents. CloudEvents is a specification on how to define event data in a standard way. These attributes can be attached to spans when performing operations with CloudEvents, regardless of the protocol being used.
88 const (
89 // The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec
90 // .md#id) uniquely identifies the event.
91 //
92 // Type: string
93 // RequirementLevel: Required
94 // Stability: stable
95 // Examples: '123e4567-e89b-12d3-a456-426614174000', '0001'
96 CloudeventsEventIDKey = attribute.Key("cloudevents.event_id")
97 // The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.m
98 // d#source-1) identifies the context in which an event happened.
99 //
100 // Type: string
101 // RequirementLevel: Required
102 // Stability: stable
103 // Examples: 'https://github.com/cloudevents', '/cloudevents/spec/pull/123', 'my-
104 // service'
105 CloudeventsEventSourceKey = attribute.Key("cloudevents.event_source")
106 // The [version of the CloudEvents specification](https://github.com/cloudevents/s
107 // pec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses.
108 //
109 // Type: string
110 // RequirementLevel: Optional
111 // Stability: stable
112 // Examples: '1.0'
113 CloudeventsEventSpecVersionKey = attribute.Key("cloudevents.event_spec_version")
114 // The [event_type](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/sp
115 // ec.md#type) contains a value describing the type of event related to the
116 // originating occurrence.
117 //
118 // Type: string
119 // RequirementLevel: Optional
120 // Stability: stable
121 // Examples: 'com.github.pull_request.opened', 'com.example.object.deleted.v2'
122 CloudeventsEventTypeKey = attribute.Key("cloudevents.event_type")
123 // The [subject](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.
124 // md#subject) of the event in the context of the event producer (identified by
125 // source).
126 //
127 // Type: string
128 // RequirementLevel: Optional
129 // Stability: stable
130 // Examples: 'mynewfile.jpg'
131 CloudeventsEventSubjectKey = attribute.Key("cloudevents.event_subject")
132 )
133
134 // This document defines semantic conventions for the OpenTracing Shim
135 const (
136 // Parent-child Reference type
137 //
138 // Type: Enum
139 // RequirementLevel: Optional
140 // Stability: stable
141 // Note: The causal relationship between a child Span and a parent Span.
142 OpentracingRefTypeKey = attribute.Key("opentracing.ref_type")
143 )
144
145 var (
146 // The parent Span depends on the child Span in some capacity
147 OpentracingRefTypeChildOf = OpentracingRefTypeKey.String("child_of")
148 // The parent Span does not depend in any way on the result of the child Span
149 OpentracingRefTypeFollowsFrom = OpentracingRefTypeKey.String("follows_from")
150 )
151
152 // This document defines the attributes used to perform database client calls.
153 const (
154 // An identifier for the database management system (DBMS) product being used. See
155 // below for a list of well-known identifiers.
156 //
157 // Type: Enum
158 // RequirementLevel: Required
159 // Stability: stable
160 DBSystemKey = attribute.Key("db.system")
161 // The connection string used to connect to the database. It is recommended to
162 // remove embedded credentials.
163 //
164 // Type: string
165 // RequirementLevel: Optional
166 // Stability: stable
167 // Examples: 'Server=(localdb)\\v11.0;Integrated Security=true;'
168 DBConnectionStringKey = attribute.Key("db.connection_string")
169 // Username for accessing the database.
170 //
171 // Type: string
172 // RequirementLevel: Optional
173 // Stability: stable
174 // Examples: 'readonly_user', 'reporting_user'
175 DBUserKey = attribute.Key("db.user")
176 // The fully-qualified class name of the [Java Database Connectivity
177 // (JDBC)](https://docs.oracle.com/javase/8/docs/technotes/guides/jdbc/) driver
178 // used to connect.
179 //
180 // Type: string
181 // RequirementLevel: Optional
182 // Stability: stable
183 // Examples: 'org.postgresql.Driver',
184 // 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
185 DBJDBCDriverClassnameKey = attribute.Key("db.jdbc.driver_classname")
186 // This attribute is used to report the name of the database being accessed. For
187 // commands that switch the database, this should be set to the target database
188 // (even if the command fails).
189 //
190 // Type: string
191 // RequirementLevel: ConditionallyRequired (If applicable.)
192 // Stability: stable
193 // Examples: 'customers', 'main'
194 // Note: In some SQL databases, the database name to be used is called "schema
195 // name". In case there are multiple layers that could be considered for database
196 // name (e.g. Oracle instance name and schema name), the database name to be used
197 // is the more specific layer (e.g. Oracle schema name).
198 DBNameKey = attribute.Key("db.name")
199 // The database statement being executed.
200 //
201 // Type: string
202 // RequirementLevel: ConditionallyRequired (If applicable and not explicitly
203 // disabled via instrumentation configuration.)
204 // Stability: stable
205 // Examples: 'SELECT * FROM wuser_table', 'SET mykey "WuValue"'
206 // Note: The value may be sanitized to exclude sensitive information.
207 DBStatementKey = attribute.Key("db.statement")
208 // The name of the operation being executed, e.g. the [MongoDB command
209 // name](https://docs.mongodb.com/manual/reference/command/#database-operations)
210 // such as `findAndModify`, or the SQL keyword.
211 //
212 // Type: string
213 // RequirementLevel: ConditionallyRequired (If `db.statement` is not applicable.)
214 // Stability: stable
215 // Examples: 'findAndModify', 'HMSET', 'SELECT'
216 // Note: When setting this to an SQL keyword, it is not recommended to attempt any
217 // client-side parsing of `db.statement` just to get this property, but it should
218 // be set if the operation name is provided by the library being instrumented. If
219 // the SQL statement has an ambiguous operation, or performs more than one
220 // operation, this value may be omitted.
221 DBOperationKey = attribute.Key("db.operation")
222 )
223
224 var (
225 // Some other SQL database. Fallback only. See notes
226 DBSystemOtherSQL = DBSystemKey.String("other_sql")
227 // Microsoft SQL Server
228 DBSystemMSSQL = DBSystemKey.String("mssql")
229 // MySQL
230 DBSystemMySQL = DBSystemKey.String("mysql")
231 // Oracle Database
232 DBSystemOracle = DBSystemKey.String("oracle")
233 // IBM DB2
234 DBSystemDB2 = DBSystemKey.String("db2")
235 // PostgreSQL
236 DBSystemPostgreSQL = DBSystemKey.String("postgresql")
237 // Amazon Redshift
238 DBSystemRedshift = DBSystemKey.String("redshift")
239 // Apache Hive
240 DBSystemHive = DBSystemKey.String("hive")
241 // Cloudscape
242 DBSystemCloudscape = DBSystemKey.String("cloudscape")
243 // HyperSQL DataBase
244 DBSystemHSQLDB = DBSystemKey.String("hsqldb")
245 // Progress Database
246 DBSystemProgress = DBSystemKey.String("progress")
247 // SAP MaxDB
248 DBSystemMaxDB = DBSystemKey.String("maxdb")
249 // SAP HANA
250 DBSystemHanaDB = DBSystemKey.String("hanadb")
251 // Ingres
252 DBSystemIngres = DBSystemKey.String("ingres")
253 // FirstSQL
254 DBSystemFirstSQL = DBSystemKey.String("firstsql")
255 // EnterpriseDB
256 DBSystemEDB = DBSystemKey.String("edb")
257 // InterSystems Caché
258 DBSystemCache = DBSystemKey.String("cache")
259 // Adabas (Adaptable Database System)
260 DBSystemAdabas = DBSystemKey.String("adabas")
261 // Firebird
262 DBSystemFirebird = DBSystemKey.String("firebird")
263 // Apache Derby
264 DBSystemDerby = DBSystemKey.String("derby")
265 // FileMaker
266 DBSystemFilemaker = DBSystemKey.String("filemaker")
267 // Informix
268 DBSystemInformix = DBSystemKey.String("informix")
269 // InstantDB
270 DBSystemInstantDB = DBSystemKey.String("instantdb")
271 // InterBase
272 DBSystemInterbase = DBSystemKey.String("interbase")
273 // MariaDB
274 DBSystemMariaDB = DBSystemKey.String("mariadb")
275 // Netezza
276 DBSystemNetezza = DBSystemKey.String("netezza")
277 // Pervasive PSQL
278 DBSystemPervasive = DBSystemKey.String("pervasive")
279 // PointBase
280 DBSystemPointbase = DBSystemKey.String("pointbase")
281 // SQLite
282 DBSystemSqlite = DBSystemKey.String("sqlite")
283 // Sybase
284 DBSystemSybase = DBSystemKey.String("sybase")
285 // Teradata
286 DBSystemTeradata = DBSystemKey.String("teradata")
287 // Vertica
288 DBSystemVertica = DBSystemKey.String("vertica")
289 // H2
290 DBSystemH2 = DBSystemKey.String("h2")
291 // ColdFusion IMQ
292 DBSystemColdfusion = DBSystemKey.String("coldfusion")
293 // Apache Cassandra
294 DBSystemCassandra = DBSystemKey.String("cassandra")
295 // Apache HBase
296 DBSystemHBase = DBSystemKey.String("hbase")
297 // MongoDB
298 DBSystemMongoDB = DBSystemKey.String("mongodb")
299 // Redis
300 DBSystemRedis = DBSystemKey.String("redis")
301 // Couchbase
302 DBSystemCouchbase = DBSystemKey.String("couchbase")
303 // CouchDB
304 DBSystemCouchDB = DBSystemKey.String("couchdb")
305 // Microsoft Azure Cosmos DB
306 DBSystemCosmosDB = DBSystemKey.String("cosmosdb")
307 // Amazon DynamoDB
308 DBSystemDynamoDB = DBSystemKey.String("dynamodb")
309 // Neo4j
310 DBSystemNeo4j = DBSystemKey.String("neo4j")
311 // Apache Geode
312 DBSystemGeode = DBSystemKey.String("geode")
313 // Elasticsearch
314 DBSystemElasticsearch = DBSystemKey.String("elasticsearch")
315 // Memcached
316 DBSystemMemcached = DBSystemKey.String("memcached")
317 // CockroachDB
318 DBSystemCockroachdb = DBSystemKey.String("cockroachdb")
319 // OpenSearch
320 DBSystemOpensearch = DBSystemKey.String("opensearch")
321 )
322
323 // Connection-level attributes for Microsoft SQL Server
324 const (
325 // The Microsoft SQL Server [instance name](https://docs.microsoft.com/en-
326 // us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver15)
327 // connecting to. This name is used to determine the port of a named instance.
328 //
329 // Type: string
330 // RequirementLevel: Optional
331 // Stability: stable
332 // Examples: 'MSSQLSERVER'
333 // Note: If setting a `db.mssql.instance_name`, `net.peer.port` is no longer
334 // required (but still recommended if non-standard).
335 DBMSSQLInstanceNameKey = attribute.Key("db.mssql.instance_name")
336 )
337
338 // Call-level attributes for Cassandra
339 const (
340 // The fetch size used for paging, i.e. how many rows will be returned at once.
341 //
342 // Type: int
343 // RequirementLevel: Optional
344 // Stability: stable
345 // Examples: 5000
346 DBCassandraPageSizeKey = attribute.Key("db.cassandra.page_size")
347 // The consistency level of the query. Based on consistency values from
348 // [CQL](https://docs.datastax.com/en/cassandra-
349 // oss/3.0/cassandra/dml/dmlConfigConsistency.html).
350 //
351 // Type: Enum
352 // RequirementLevel: Optional
353 // Stability: stable
354 DBCassandraConsistencyLevelKey = attribute.Key("db.cassandra.consistency_level")
355 // The name of the primary table that the operation is acting upon, including the
356 // keyspace name (if applicable).
357 //
358 // Type: string
359 // RequirementLevel: Recommended
360 // Stability: stable
361 // Examples: 'mytable'
362 // Note: This mirrors the db.sql.table attribute but references cassandra rather
363 // than sql. It is not recommended to attempt any client-side parsing of
364 // `db.statement` just to get this property, but it should be set if it is
365 // provided by the library being instrumented. If the operation is acting upon an
366 // anonymous table, or more than one table, this value MUST NOT be set.
367 DBCassandraTableKey = attribute.Key("db.cassandra.table")
368 // Whether or not the query is idempotent.
369 //
370 // Type: boolean
371 // RequirementLevel: Optional
372 // Stability: stable
373 DBCassandraIdempotenceKey = attribute.Key("db.cassandra.idempotence")
374 // The number of times a query was speculatively executed. Not set or `0` if the
375 // query was not executed speculatively.
376 //
377 // Type: int
378 // RequirementLevel: Optional
379 // Stability: stable
380 // Examples: 0, 2
381 DBCassandraSpeculativeExecutionCountKey = attribute.Key("db.cassandra.speculative_execution_count")
382 // The ID of the coordinating node for a query.
383 //
384 // Type: string
385 // RequirementLevel: Optional
386 // Stability: stable
387 // Examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af'
388 DBCassandraCoordinatorIDKey = attribute.Key("db.cassandra.coordinator.id")
389 // The data center of the coordinating node for a query.
390 //
391 // Type: string
392 // RequirementLevel: Optional
393 // Stability: stable
394 // Examples: 'us-west-2'
395 DBCassandraCoordinatorDCKey = attribute.Key("db.cassandra.coordinator.dc")
396 )
397
398 var (
399 // all
400 DBCassandraConsistencyLevelAll = DBCassandraConsistencyLevelKey.String("all")
401 // each_quorum
402 DBCassandraConsistencyLevelEachQuorum = DBCassandraConsistencyLevelKey.String("each_quorum")
403 // quorum
404 DBCassandraConsistencyLevelQuorum = DBCassandraConsistencyLevelKey.String("quorum")
405 // local_quorum
406 DBCassandraConsistencyLevelLocalQuorum = DBCassandraConsistencyLevelKey.String("local_quorum")
407 // one
408 DBCassandraConsistencyLevelOne = DBCassandraConsistencyLevelKey.String("one")
409 // two
410 DBCassandraConsistencyLevelTwo = DBCassandraConsistencyLevelKey.String("two")
411 // three
412 DBCassandraConsistencyLevelThree = DBCassandraConsistencyLevelKey.String("three")
413 // local_one
414 DBCassandraConsistencyLevelLocalOne = DBCassandraConsistencyLevelKey.String("local_one")
415 // any
416 DBCassandraConsistencyLevelAny = DBCassandraConsistencyLevelKey.String("any")
417 // serial
418 DBCassandraConsistencyLevelSerial = DBCassandraConsistencyLevelKey.String("serial")
419 // local_serial
420 DBCassandraConsistencyLevelLocalSerial = DBCassandraConsistencyLevelKey.String("local_serial")
421 )
422
423 // Call-level attributes for Redis
424 const (
425 // The index of the database being accessed as used in the [`SELECT`
426 // command](https://redis.io/commands/select), provided as an integer. To be used
427 // instead of the generic `db.name` attribute.
428 //
429 // Type: int
430 // RequirementLevel: ConditionallyRequired (If other than the default database
431 // (`0`).)
432 // Stability: stable
433 // Examples: 0, 1, 15
434 DBRedisDBIndexKey = attribute.Key("db.redis.database_index")
435 )
436
437 // Call-level attributes for MongoDB
438 const (
439 // The collection being accessed within the database stated in `db.name`.
440 //
441 // Type: string
442 // RequirementLevel: Required
443 // Stability: stable
444 // Examples: 'customers', 'products'
445 DBMongoDBCollectionKey = attribute.Key("db.mongodb.collection")
446 )
447
448 // Call-level attributes for SQL databases
449 const (
450 // The name of the primary table that the operation is acting upon, including the
451 // database name (if applicable).
452 //
453 // Type: string
454 // RequirementLevel: Recommended
455 // Stability: stable
456 // Examples: 'public.users', 'customers'
457 // Note: It is not recommended to attempt any client-side parsing of
458 // `db.statement` just to get this property, but it should be set if it is
459 // provided by the library being instrumented. If the operation is acting upon an
460 // anonymous table, or more than one table, this value MUST NOT be set.
461 DBSQLTableKey = attribute.Key("db.sql.table")
462 )
463
464 // This semantic convention describes an instance of a function that runs without provisioning or managing of servers (also known as serverless functions or Function as a Service (FaaS)) with spans.
465 const (
466 // Type of the trigger which caused this function execution.
467 //
468 // Type: Enum
469 // RequirementLevel: Optional
470 // Stability: stable
471 // Note: For the server/consumer span on the incoming side,
472 // `faas.trigger` MUST be set.
473
474 // Clients invoking FaaS instances usually cannot set `faas.trigger`,
475 // since they would typically need to look in the payload to determine
476 // the event type. If clients set it, it should be the same as the
477 // trigger that corresponding incoming would have (i.e., this has
478 // nothing to do with the underlying transport used to make the API
479 // call to invoke the lambda, which is often HTTP).
480 FaaSTriggerKey = attribute.Key("faas.trigger")
481 // The execution ID of the current function execution.
482 //
483 // Type: string
484 // RequirementLevel: Optional
485 // Stability: stable
486 // Examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28'
487 FaaSExecutionKey = attribute.Key("faas.execution")
488 )
489
490 var (
491 // A response to some data source operation such as a database or filesystem read/write
492 FaaSTriggerDatasource = FaaSTriggerKey.String("datasource")
493 // To provide an answer to an inbound HTTP request
494 FaaSTriggerHTTP = FaaSTriggerKey.String("http")
495 // A function is set to be executed when messages are sent to a messaging system
496 FaaSTriggerPubsub = FaaSTriggerKey.String("pubsub")
497 // A function is scheduled to be executed regularly
498 FaaSTriggerTimer = FaaSTriggerKey.String("timer")
499 // If none of the others apply
500 FaaSTriggerOther = FaaSTriggerKey.String("other")
501 )
502
503 // Semantic Convention for FaaS triggered as a response to some data source operation such as a database or filesystem read/write.
504 const (
505 // The name of the source on which the triggering operation was performed. For
506 // example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos
507 // DB to the database name.
508 //
509 // Type: string
510 // RequirementLevel: Required
511 // Stability: stable
512 // Examples: 'myBucketName', 'myDBName'
513 FaaSDocumentCollectionKey = attribute.Key("faas.document.collection")
514 // Describes the type of the operation that was performed on the data.
515 //
516 // Type: Enum
517 // RequirementLevel: Required
518 // Stability: stable
519 FaaSDocumentOperationKey = attribute.Key("faas.document.operation")
520 // A string containing the time when the data was accessed in the [ISO
521 // 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed
522 // in [UTC](https://www.w3.org/TR/NOTE-datetime).
523 //
524 // Type: string
525 // RequirementLevel: Optional
526 // Stability: stable
527 // Examples: '2020-01-23T13:47:06Z'
528 FaaSDocumentTimeKey = attribute.Key("faas.document.time")
529 // The document name/table subjected to the operation. For example, in Cloud
530 // Storage or S3 is the name of the file, and in Cosmos DB the table name.
531 //
532 // Type: string
533 // RequirementLevel: Optional
534 // Stability: stable
535 // Examples: 'myFile.txt', 'myTableName'
536 FaaSDocumentNameKey = attribute.Key("faas.document.name")
537 )
538
539 var (
540 // When a new object is created
541 FaaSDocumentOperationInsert = FaaSDocumentOperationKey.String("insert")
542 // When an object is modified
543 FaaSDocumentOperationEdit = FaaSDocumentOperationKey.String("edit")
544 // When an object is deleted
545 FaaSDocumentOperationDelete = FaaSDocumentOperationKey.String("delete")
546 )
547
548 // Semantic Convention for FaaS scheduled to be executed regularly.
549 const (
550 // A string containing the function invocation time in the [ISO
551 // 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed
552 // in [UTC](https://www.w3.org/TR/NOTE-datetime).
553 //
554 // Type: string
555 // RequirementLevel: Optional
556 // Stability: stable
557 // Examples: '2020-01-23T13:47:06Z'
558 FaaSTimeKey = attribute.Key("faas.time")
559 // A string containing the schedule period as [Cron Expression](https://docs.oracl
560 // e.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm).
561 //
562 // Type: string
563 // RequirementLevel: Optional
564 // Stability: stable
565 // Examples: '0/5 * * * ? *'
566 FaaSCronKey = attribute.Key("faas.cron")
567 )
568
569 // Contains additional attributes for incoming FaaS spans.
570 const (
571 // A boolean that is true if the serverless function is executed for the first
572 // time (aka cold-start).
573 //
574 // Type: boolean
575 // RequirementLevel: Optional
576 // Stability: stable
577 FaaSColdstartKey = attribute.Key("faas.coldstart")
578 )
579
580 // Contains additional attributes for outgoing FaaS spans.
581 const (
582 // The name of the invoked function.
583 //
584 // Type: string
585 // RequirementLevel: Required
586 // Stability: stable
587 // Examples: 'my-function'
588 // Note: SHOULD be equal to the `faas.name` resource attribute of the invoked
589 // function.
590 FaaSInvokedNameKey = attribute.Key("faas.invoked_name")
591 // The cloud provider of the invoked function.
592 //
593 // Type: Enum
594 // RequirementLevel: Required
595 // Stability: stable
596 // Note: SHOULD be equal to the `cloud.provider` resource attribute of the invoked
597 // function.
598 FaaSInvokedProviderKey = attribute.Key("faas.invoked_provider")
599 // The cloud region of the invoked function.
600 //
601 // Type: string
602 // RequirementLevel: ConditionallyRequired (For some cloud providers, like AWS or
603 // GCP, the region in which a function is hosted is essential to uniquely identify
604 // the function and also part of its endpoint. Since it's part of the endpoint
605 // being called, the region is always known to clients. In these cases,
606 // `faas.invoked_region` MUST be set accordingly. If the region is unknown to the
607 // client or not required for identifying the invoked function, setting
608 // `faas.invoked_region` is optional.)
609 // Stability: stable
610 // Examples: 'eu-central-1'
611 // Note: SHOULD be equal to the `cloud.region` resource attribute of the invoked
612 // function.
613 FaaSInvokedRegionKey = attribute.Key("faas.invoked_region")
614 )
615
616 var (
617 // Alibaba Cloud
618 FaaSInvokedProviderAlibabaCloud = FaaSInvokedProviderKey.String("alibaba_cloud")
619 // Amazon Web Services
620 FaaSInvokedProviderAWS = FaaSInvokedProviderKey.String("aws")
621 // Microsoft Azure
622 FaaSInvokedProviderAzure = FaaSInvokedProviderKey.String("azure")
623 // Google Cloud Platform
624 FaaSInvokedProviderGCP = FaaSInvokedProviderKey.String("gcp")
625 // Tencent Cloud
626 FaaSInvokedProviderTencentCloud = FaaSInvokedProviderKey.String("tencent_cloud")
627 )
628
629 // These attributes may be used for any network related operation.
630 const (
631 // Transport protocol used. See note below.
632 //
633 // Type: Enum
634 // RequirementLevel: Optional
635 // Stability: stable
636 NetTransportKey = attribute.Key("net.transport")
637 // Application layer protocol used. The value SHOULD be normalized to lowercase.
638 //
639 // Type: string
640 // RequirementLevel: Optional
641 // Stability: stable
642 // Examples: 'amqp', 'http', 'mqtt'
643 NetAppProtocolNameKey = attribute.Key("net.app.protocol.name")
644 // Version of the application layer protocol used. See note below.
645 //
646 // Type: string
647 // RequirementLevel: Optional
648 // Stability: stable
649 // Examples: '3.1.1'
650 // Note: `net.app.protocol.version` refers to the version of the protocol used and
651 // might be different from the protocol client's version. If the HTTP client used
652 // has a version of `0.27.2`, but sends HTTP version `1.1`, this attribute should
653 // be set to `1.1`.
654 NetAppProtocolVersionKey = attribute.Key("net.app.protocol.version")
655 // Remote socket peer name.
656 //
657 // Type: string
658 // RequirementLevel: Recommended (If available and different from `net.peer.name`
659 // and if `net.sock.peer.addr` is set.)
660 // Stability: stable
661 // Examples: 'proxy.example.com'
662 NetSockPeerNameKey = attribute.Key("net.sock.peer.name")
663 // Remote socket peer address: IPv4 or IPv6 for internet protocols, path for local
664 // communication, [etc](https://man7.org/linux/man-
665 // pages/man7/address_families.7.html).
666 //
667 // Type: string
668 // RequirementLevel: Optional
669 // Stability: stable
670 // Examples: '127.0.0.1', '/tmp/mysql.sock'
671 NetSockPeerAddrKey = attribute.Key("net.sock.peer.addr")
672 // Remote socket peer port.
673 //
674 // Type: int
675 // RequirementLevel: Recommended (If defined for the address family and if
676 // different than `net.peer.port` and if `net.sock.peer.addr` is set.)
677 // Stability: stable
678 // Examples: 16456
679 NetSockPeerPortKey = attribute.Key("net.sock.peer.port")
680 // Protocol [address family](https://man7.org/linux/man-
681 // pages/man7/address_families.7.html) which is used for communication.
682 //
683 // Type: Enum
684 // RequirementLevel: ConditionallyRequired (If different than `inet` and if any of
685 // `net.sock.peer.addr` or `net.sock.host.addr` are set. Consumers of telemetry
686 // SHOULD accept both IPv4 and IPv6 formats for the address in
687 // `net.sock.peer.addr` if `net.sock.family` is not set. This is to support
688 // instrumentations that follow previous versions of this document.)
689 // Stability: stable
690 // Examples: 'inet6', 'bluetooth'
691 NetSockFamilyKey = attribute.Key("net.sock.family")
692 // Logical remote hostname, see note below.
693 //
694 // Type: string
695 // RequirementLevel: Optional
696 // Stability: stable
697 // Examples: 'example.com'
698 // Note: `net.peer.name` SHOULD NOT be set if capturing it would require an extra
699 // DNS lookup.
700 NetPeerNameKey = attribute.Key("net.peer.name")
701 // Logical remote port number
702 //
703 // Type: int
704 // RequirementLevel: Optional
705 // Stability: stable
706 // Examples: 80, 8080, 443
707 NetPeerPortKey = attribute.Key("net.peer.port")
708 // Logical local hostname or similar, see note below.
709 //
710 // Type: string
711 // RequirementLevel: Optional
712 // Stability: stable
713 // Examples: 'localhost'
714 NetHostNameKey = attribute.Key("net.host.name")
715 // Logical local port number, preferably the one that the peer used to connect
716 //
717 // Type: int
718 // RequirementLevel: Optional
719 // Stability: stable
720 // Examples: 8080
721 NetHostPortKey = attribute.Key("net.host.port")
722 // Local socket address. Useful in case of a multi-IP host.
723 //
724 // Type: string
725 // RequirementLevel: Optional
726 // Stability: stable
727 // Examples: '192.168.0.1'
728 NetSockHostAddrKey = attribute.Key("net.sock.host.addr")
729 // Local socket port number.
730 //
731 // Type: int
732 // RequirementLevel: Recommended (If defined for the address family and if
733 // different than `net.host.port` and if `net.sock.host.addr` is set.)
734 // Stability: stable
735 // Examples: 35555
736 NetSockHostPortKey = attribute.Key("net.sock.host.port")
737 // The internet connection type currently being used by the host.
738 //
739 // Type: Enum
740 // RequirementLevel: Optional
741 // Stability: stable
742 // Examples: 'wifi'
743 NetHostConnectionTypeKey = attribute.Key("net.host.connection.type")
744 // This describes more details regarding the connection.type. It may be the type
745 // of cell technology connection, but it could be used for describing details
746 // about a wifi connection.
747 //
748 // Type: Enum
749 // RequirementLevel: Optional
750 // Stability: stable
751 // Examples: 'LTE'
752 NetHostConnectionSubtypeKey = attribute.Key("net.host.connection.subtype")
753 // The name of the mobile carrier.
754 //
755 // Type: string
756 // RequirementLevel: Optional
757 // Stability: stable
758 // Examples: 'sprint'
759 NetHostCarrierNameKey = attribute.Key("net.host.carrier.name")
760 // The mobile carrier country code.
761 //
762 // Type: string
763 // RequirementLevel: Optional
764 // Stability: stable
765 // Examples: '310'
766 NetHostCarrierMccKey = attribute.Key("net.host.carrier.mcc")
767 // The mobile carrier network code.
768 //
769 // Type: string
770 // RequirementLevel: Optional
771 // Stability: stable
772 // Examples: '001'
773 NetHostCarrierMncKey = attribute.Key("net.host.carrier.mnc")
774 // The ISO 3166-1 alpha-2 2-character country code associated with the mobile
775 // carrier network.
776 //
777 // Type: string
778 // RequirementLevel: Optional
779 // Stability: stable
780 // Examples: 'DE'
781 NetHostCarrierIccKey = attribute.Key("net.host.carrier.icc")
782 )
783
784 var (
785 // ip_tcp
786 NetTransportTCP = NetTransportKey.String("ip_tcp")
787 // ip_udp
788 NetTransportUDP = NetTransportKey.String("ip_udp")
789 // Named or anonymous pipe. See note below
790 NetTransportPipe = NetTransportKey.String("pipe")
791 // In-process communication
792 NetTransportInProc = NetTransportKey.String("inproc")
793 // Something else (non IP-based)
794 NetTransportOther = NetTransportKey.String("other")
795 )
796
797 var (
798 // IPv4 address
799 NetSockFamilyInet = NetSockFamilyKey.String("inet")
800 // IPv6 address
801 NetSockFamilyInet6 = NetSockFamilyKey.String("inet6")
802 // Unix domain socket path
803 NetSockFamilyUnix = NetSockFamilyKey.String("unix")
804 )
805
806 var (
807 // wifi
808 NetHostConnectionTypeWifi = NetHostConnectionTypeKey.String("wifi")
809 // wired
810 NetHostConnectionTypeWired = NetHostConnectionTypeKey.String("wired")
811 // cell
812 NetHostConnectionTypeCell = NetHostConnectionTypeKey.String("cell")
813 // unavailable
814 NetHostConnectionTypeUnavailable = NetHostConnectionTypeKey.String("unavailable")
815 // unknown
816 NetHostConnectionTypeUnknown = NetHostConnectionTypeKey.String("unknown")
817 )
818
819 var (
820 // GPRS
821 NetHostConnectionSubtypeGprs = NetHostConnectionSubtypeKey.String("gprs")
822 // EDGE
823 NetHostConnectionSubtypeEdge = NetHostConnectionSubtypeKey.String("edge")
824 // UMTS
825 NetHostConnectionSubtypeUmts = NetHostConnectionSubtypeKey.String("umts")
826 // CDMA
827 NetHostConnectionSubtypeCdma = NetHostConnectionSubtypeKey.String("cdma")
828 // EVDO Rel. 0
829 NetHostConnectionSubtypeEvdo0 = NetHostConnectionSubtypeKey.String("evdo_0")
830 // EVDO Rev. A
831 NetHostConnectionSubtypeEvdoA = NetHostConnectionSubtypeKey.String("evdo_a")
832 // CDMA2000 1XRTT
833 NetHostConnectionSubtypeCdma20001xrtt = NetHostConnectionSubtypeKey.String("cdma2000_1xrtt")
834 // HSDPA
835 NetHostConnectionSubtypeHsdpa = NetHostConnectionSubtypeKey.String("hsdpa")
836 // HSUPA
837 NetHostConnectionSubtypeHsupa = NetHostConnectionSubtypeKey.String("hsupa")
838 // HSPA
839 NetHostConnectionSubtypeHspa = NetHostConnectionSubtypeKey.String("hspa")
840 // IDEN
841 NetHostConnectionSubtypeIden = NetHostConnectionSubtypeKey.String("iden")
842 // EVDO Rev. B
843 NetHostConnectionSubtypeEvdoB = NetHostConnectionSubtypeKey.String("evdo_b")
844 // LTE
845 NetHostConnectionSubtypeLte = NetHostConnectionSubtypeKey.String("lte")
846 // EHRPD
847 NetHostConnectionSubtypeEhrpd = NetHostConnectionSubtypeKey.String("ehrpd")
848 // HSPAP
849 NetHostConnectionSubtypeHspap = NetHostConnectionSubtypeKey.String("hspap")
850 // GSM
851 NetHostConnectionSubtypeGsm = NetHostConnectionSubtypeKey.String("gsm")
852 // TD-SCDMA
853 NetHostConnectionSubtypeTdScdma = NetHostConnectionSubtypeKey.String("td_scdma")
854 // IWLAN
855 NetHostConnectionSubtypeIwlan = NetHostConnectionSubtypeKey.String("iwlan")
856 // 5G NR (New Radio)
857 NetHostConnectionSubtypeNr = NetHostConnectionSubtypeKey.String("nr")
858 // 5G NRNSA (New Radio Non-Standalone)
859 NetHostConnectionSubtypeNrnsa = NetHostConnectionSubtypeKey.String("nrnsa")
860 // LTE CA
861 NetHostConnectionSubtypeLteCa = NetHostConnectionSubtypeKey.String("lte_ca")
862 )
863
864 // Operations that access some remote service.
865 const (
866 // The [`service.name`](../../resource/semantic_conventions/README.md#service) of
867 // the remote service. SHOULD be equal to the actual `service.name` resource
868 // attribute of the remote service if any.
869 //
870 // Type: string
871 // RequirementLevel: Optional
872 // Stability: stable
873 // Examples: 'AuthTokenCache'
874 PeerServiceKey = attribute.Key("peer.service")
875 )
876
877 // These attributes may be used for any operation with an authenticated and/or authorized enduser.
878 const (
879 // Username or client_id extracted from the access token or
880 // [Authorization](https://tools.ietf.org/html/rfc7235#section-4.2) header in the
881 // inbound request from outside the system.
882 //
883 // Type: string
884 // RequirementLevel: Optional
885 // Stability: stable
886 // Examples: 'username'
887 EnduserIDKey = attribute.Key("enduser.id")
888 // Actual/assumed role the client is making the request under extracted from token
889 // or application security context.
890 //
891 // Type: string
892 // RequirementLevel: Optional
893 // Stability: stable
894 // Examples: 'admin'
895 EnduserRoleKey = attribute.Key("enduser.role")
896 // Scopes or granted authorities the client currently possesses extracted from
897 // token or application security context. The value would come from the scope
898 // associated with an [OAuth 2.0 Access
899 // Token](https://tools.ietf.org/html/rfc6749#section-3.3) or an attribute value
900 // in a [SAML 2.0 Assertion](http://docs.oasis-
901 // open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0.html).
902 //
903 // Type: string
904 // RequirementLevel: Optional
905 // Stability: stable
906 // Examples: 'read:message, write:files'
907 EnduserScopeKey = attribute.Key("enduser.scope")
908 )
909
910 // These attributes may be used for any operation to store information about a thread that started a span.
911 const (
912 // Current "managed" thread ID (as opposed to OS thread ID).
913 //
914 // Type: int
915 // RequirementLevel: Optional
916 // Stability: stable
917 // Examples: 42
918 ThreadIDKey = attribute.Key("thread.id")
919 // Current thread name.
920 //
921 // Type: string
922 // RequirementLevel: Optional
923 // Stability: stable
924 // Examples: 'main'
925 ThreadNameKey = attribute.Key("thread.name")
926 )
927
928 // These attributes allow to report this unit of code and therefore to provide more context about the span.
929 const (
930 // The method or function name, or equivalent (usually rightmost part of the code
931 // unit's name).
932 //
933 // Type: string
934 // RequirementLevel: Optional
935 // Stability: stable
936 // Examples: 'serveRequest'
937 CodeFunctionKey = attribute.Key("code.function")
938 // The "namespace" within which `code.function` is defined. Usually the qualified
939 // class or module name, such that `code.namespace` + some separator +
940 // `code.function` form a unique identifier for the code unit.
941 //
942 // Type: string
943 // RequirementLevel: Optional
944 // Stability: stable
945 // Examples: 'com.example.MyHTTPService'
946 CodeNamespaceKey = attribute.Key("code.namespace")
947 // The source code file name that identifies the code unit as uniquely as possible
948 // (preferably an absolute file path).
949 //
950 // Type: string
951 // RequirementLevel: Optional
952 // Stability: stable
953 // Examples: '/usr/local/MyApplication/content_root/app/index.php'
954 CodeFilepathKey = attribute.Key("code.filepath")
955 // The line number in `code.filepath` best representing the operation. It SHOULD
956 // point within the code unit named in `code.function`.
957 //
958 // Type: int
959 // RequirementLevel: Optional
960 // Stability: stable
961 // Examples: 42
962 CodeLineNumberKey = attribute.Key("code.lineno")
963 )
964
965 // This document defines semantic conventions for HTTP client and server Spans.
966 const (
967 // HTTP request method.
968 //
969 // Type: string
970 // RequirementLevel: Required
971 // Stability: stable
972 // Examples: 'GET', 'POST', 'HEAD'
973 HTTPMethodKey = attribute.Key("http.method")
974 // [HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).
975 //
976 // Type: int
977 // RequirementLevel: ConditionallyRequired (If and only if one was received/sent.)
978 // Stability: stable
979 // Examples: 200
980 HTTPStatusCodeKey = attribute.Key("http.status_code")
981 // Kind of HTTP protocol used.
982 //
983 // Type: Enum
984 // RequirementLevel: Optional
985 // Stability: stable
986 // Note: If `net.transport` is not specified, it can be assumed to be `IP.TCP`
987 // except if `http.flavor` is `QUIC`, in which case `IP.UDP` is assumed.
988 HTTPFlavorKey = attribute.Key("http.flavor")
989 // Value of the [HTTP User-Agent](https://www.rfc-
990 // editor.org/rfc/rfc9110.html#field.user-agent) header sent by the client.
991 //
992 // Type: string
993 // RequirementLevel: Optional
994 // Stability: stable
995 // Examples: 'CERN-LineMode/2.15 libwww/2.17b3'
996 HTTPUserAgentKey = attribute.Key("http.user_agent")
997 // The size of the request payload body in bytes. This is the number of bytes
998 // transferred excluding headers and is often, but not always, present as the
999 // [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-
1000 // length) header. For requests using transport encoding, this should be the
1001 // compressed size.
1002 //
1003 // Type: int
1004 // RequirementLevel: Optional
1005 // Stability: stable
1006 // Examples: 3495
1007 HTTPRequestContentLengthKey = attribute.Key("http.request_content_length")
1008 // The size of the response payload body in bytes. This is the number of bytes
1009 // transferred excluding headers and is often, but not always, present as the
1010 // [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-
1011 // length) header. For requests using transport encoding, this should be the
1012 // compressed size.
1013 //
1014 // Type: int
1015 // RequirementLevel: Optional
1016 // Stability: stable
1017 // Examples: 3495
1018 HTTPResponseContentLengthKey = attribute.Key("http.response_content_length")
1019 )
1020
1021 var (
1022 // HTTP/1.0
1023 HTTPFlavorHTTP10 = HTTPFlavorKey.String("1.0")
1024 // HTTP/1.1
1025 HTTPFlavorHTTP11 = HTTPFlavorKey.String("1.1")
1026 // HTTP/2
1027 HTTPFlavorHTTP20 = HTTPFlavorKey.String("2.0")
1028 // HTTP/3
1029 HTTPFlavorHTTP30 = HTTPFlavorKey.String("3.0")
1030 // SPDY protocol
1031 HTTPFlavorSPDY = HTTPFlavorKey.String("SPDY")
1032 // QUIC protocol
1033 HTTPFlavorQUIC = HTTPFlavorKey.String("QUIC")
1034 )
1035
1036 // Semantic Convention for HTTP Client
1037 const (
1038 // Full HTTP request URL in the form `scheme://host[:port]/path?query[#fragment]`.
1039 // Usually the fragment is not transmitted over HTTP, but if it is known, it
1040 // should be included nevertheless.
1041 //
1042 // Type: string
1043 // RequirementLevel: Required
1044 // Stability: stable
1045 // Examples: 'https://www.foo.bar/search?q=OpenTelemetry#SemConv'
1046 // Note: `http.url` MUST NOT contain credentials passed via URL in form of
1047 // `https://username:[email protected]/`. In such case the attribute's
1048 // value should be `https://www.example.com/`.
1049 HTTPURLKey = attribute.Key("http.url")
1050 // The ordinal number of request re-sending attempt.
1051 //
1052 // Type: int
1053 // RequirementLevel: Recommended (if and only if request was retried.)
1054 // Stability: stable
1055 // Examples: 3
1056 HTTPRetryCountKey = attribute.Key("http.retry_count")
1057 )
1058
1059 // Semantic Convention for HTTP Server
1060 const (
1061 // The URI scheme identifying the used protocol.
1062 //
1063 // Type: string
1064 // RequirementLevel: Required
1065 // Stability: stable
1066 // Examples: 'http', 'https'
1067 HTTPSchemeKey = attribute.Key("http.scheme")
1068 // The full request target as passed in a HTTP request line or equivalent.
1069 //
1070 // Type: string
1071 // RequirementLevel: Required
1072 // Stability: stable
1073 // Examples: '/path/12314/?q=ddds'
1074 HTTPTargetKey = attribute.Key("http.target")
1075 // The matched route (path template in the format used by the respective server
1076 // framework). See note below
1077 //
1078 // Type: string
1079 // RequirementLevel: ConditionallyRequired (If and only if it's available)
1080 // Stability: stable
1081 // Examples: '/users/:userID?', '{controller}/{action}/{id?}'
1082 // Note: 'http.route' MUST NOT be populated when this is not supported by the HTTP
1083 // server framework as the route attribute should have low-cardinality and the URI
1084 // path can NOT substitute it.
1085 HTTPRouteKey = attribute.Key("http.route")
1086 // The IP address of the original client behind all proxies, if known (e.g. from
1087 // [X-Forwarded-For](https://developer.mozilla.org/en-
1088 // US/docs/Web/HTTP/Headers/X-Forwarded-For)).
1089 //
1090 // Type: string
1091 // RequirementLevel: Optional
1092 // Stability: stable
1093 // Examples: '83.164.160.102'
1094 // Note: This is not necessarily the same as `net.sock.peer.addr`, which would
1095 // identify the network-level peer, which may be a proxy.
1096
1097 // This attribute should be set when a source of information different
1098 // from the one used for `net.sock.peer.addr`, is available even if that other
1099 // source just confirms the same value as `net.sock.peer.addr`.
1100 // Rationale: For `net.sock.peer.addr`, one typically does not know if it
1101 // comes from a proxy, reverse proxy, or the actual client. Setting
1102 // `http.client_ip` when it's the same as `net.sock.peer.addr` means that
1103 // one is at least somewhat confident that the address is not that of
1104 // the closest proxy.
1105 HTTPClientIPKey = attribute.Key("http.client_ip")
1106 )
1107
1108 // Attributes that exist for multiple DynamoDB request types.
1109 const (
1110 // The keys in the `RequestItems` object field.
1111 //
1112 // Type: string[]
1113 // RequirementLevel: Optional
1114 // Stability: stable
1115 // Examples: 'Users', 'Cats'
1116 AWSDynamoDBTableNamesKey = attribute.Key("aws.dynamodb.table_names")
1117 // The JSON-serialized value of each item in the `ConsumedCapacity` response
1118 // field.
1119 //
1120 // Type: string[]
1121 // RequirementLevel: Optional
1122 // Stability: stable
1123 // Examples: '{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : {
1124 // "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits":
1125 // number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number,
1126 // "ReadCapacityUnits": number, "WriteCapacityUnits": number } },
1127 // "ReadCapacityUnits": number, "Table": { "CapacityUnits": number,
1128 // "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName":
1129 // "string", "WriteCapacityUnits": number }'
1130 AWSDynamoDBConsumedCapacityKey = attribute.Key("aws.dynamodb.consumed_capacity")
1131 // The JSON-serialized value of the `ItemCollectionMetrics` response field.
1132 //
1133 // Type: string
1134 // RequirementLevel: Optional
1135 // Stability: stable
1136 // Examples: '{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob,
1137 // "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" :
1138 // "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S":
1139 // "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }'
1140 AWSDynamoDBItemCollectionMetricsKey = attribute.Key("aws.dynamodb.item_collection_metrics")
1141 // The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.
1142 //
1143 // Type: double
1144 // RequirementLevel: Optional
1145 // Stability: stable
1146 // Examples: 1.0, 2.0
1147 AWSDynamoDBProvisionedReadCapacityKey = attribute.Key("aws.dynamodb.provisioned_read_capacity")
1148 // The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter.
1149 //
1150 // Type: double
1151 // RequirementLevel: Optional
1152 // Stability: stable
1153 // Examples: 1.0, 2.0
1154 AWSDynamoDBProvisionedWriteCapacityKey = attribute.Key("aws.dynamodb.provisioned_write_capacity")
1155 // The value of the `ConsistentRead` request parameter.
1156 //
1157 // Type: boolean
1158 // RequirementLevel: Optional
1159 // Stability: stable
1160 AWSDynamoDBConsistentReadKey = attribute.Key("aws.dynamodb.consistent_read")
1161 // The value of the `ProjectionExpression` request parameter.
1162 //
1163 // Type: string
1164 // RequirementLevel: Optional
1165 // Stability: stable
1166 // Examples: 'Title', 'Title, Price, Color', 'Title, Description, RelatedItems,
1167 // ProductReviews'
1168 AWSDynamoDBProjectionKey = attribute.Key("aws.dynamodb.projection")
1169 // The value of the `Limit` request parameter.
1170 //
1171 // Type: int
1172 // RequirementLevel: Optional
1173 // Stability: stable
1174 // Examples: 10
1175 AWSDynamoDBLimitKey = attribute.Key("aws.dynamodb.limit")
1176 // The value of the `AttributesToGet` request parameter.
1177 //
1178 // Type: string[]
1179 // RequirementLevel: Optional
1180 // Stability: stable
1181 // Examples: 'lives', 'id'
1182 AWSDynamoDBAttributesToGetKey = attribute.Key("aws.dynamodb.attributes_to_get")
1183 // The value of the `IndexName` request parameter.
1184 //
1185 // Type: string
1186 // RequirementLevel: Optional
1187 // Stability: stable
1188 // Examples: 'name_to_group'
1189 AWSDynamoDBIndexNameKey = attribute.Key("aws.dynamodb.index_name")
1190 // The value of the `Select` request parameter.
1191 //
1192 // Type: string
1193 // RequirementLevel: Optional
1194 // Stability: stable
1195 // Examples: 'ALL_ATTRIBUTES', 'COUNT'
1196 AWSDynamoDBSelectKey = attribute.Key("aws.dynamodb.select")
1197 )
1198
1199 // DynamoDB.CreateTable
1200 const (
1201 // The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request
1202 // field
1203 //
1204 // Type: string[]
1205 // RequirementLevel: Optional
1206 // Stability: stable
1207 // Examples: '{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string",
1208 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
1209 // "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits":
1210 // number, "WriteCapacityUnits": number } }'
1211 AWSDynamoDBGlobalSecondaryIndexesKey = attribute.Key("aws.dynamodb.global_secondary_indexes")
1212 // The JSON-serialized value of each item of the `LocalSecondaryIndexes` request
1213 // field.
1214 //
1215 // Type: string[]
1216 // RequirementLevel: Optional
1217 // Stability: stable
1218 // Examples: '{ "IndexARN": "string", "IndexName": "string", "IndexSizeBytes":
1219 // number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string",
1220 // "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ],
1221 // "ProjectionType": "string" } }'
1222 AWSDynamoDBLocalSecondaryIndexesKey = attribute.Key("aws.dynamodb.local_secondary_indexes")
1223 )
1224
1225 // DynamoDB.ListTables
1226 const (
1227 // The value of the `ExclusiveStartTableName` request parameter.
1228 //
1229 // Type: string
1230 // RequirementLevel: Optional
1231 // Stability: stable
1232 // Examples: 'Users', 'CatsTable'
1233 AWSDynamoDBExclusiveStartTableKey = attribute.Key("aws.dynamodb.exclusive_start_table")
1234 // The number of items in the `TableNames` response parameter.
1235 //
1236 // Type: int
1237 // RequirementLevel: Optional
1238 // Stability: stable
1239 // Examples: 20
1240 AWSDynamoDBTableCountKey = attribute.Key("aws.dynamodb.table_count")
1241 )
1242
1243 // DynamoDB.Query
1244 const (
1245 // The value of the `ScanIndexForward` request parameter.
1246 //
1247 // Type: boolean
1248 // RequirementLevel: Optional
1249 // Stability: stable
1250 AWSDynamoDBScanForwardKey = attribute.Key("aws.dynamodb.scan_forward")
1251 )
1252
1253 // DynamoDB.Scan
1254 const (
1255 // The value of the `Segment` request parameter.
1256 //
1257 // Type: int
1258 // RequirementLevel: Optional
1259 // Stability: stable
1260 // Examples: 10
1261 AWSDynamoDBSegmentKey = attribute.Key("aws.dynamodb.segment")
1262 // The value of the `TotalSegments` request parameter.
1263 //
1264 // Type: int
1265 // RequirementLevel: Optional
1266 // Stability: stable
1267 // Examples: 100
1268 AWSDynamoDBTotalSegmentsKey = attribute.Key("aws.dynamodb.total_segments")
1269 // The value of the `Count` response parameter.
1270 //
1271 // Type: int
1272 // RequirementLevel: Optional
1273 // Stability: stable
1274 // Examples: 10
1275 AWSDynamoDBCountKey = attribute.Key("aws.dynamodb.count")
1276 // The value of the `ScannedCount` response parameter.
1277 //
1278 // Type: int
1279 // RequirementLevel: Optional
1280 // Stability: stable
1281 // Examples: 50
1282 AWSDynamoDBScannedCountKey = attribute.Key("aws.dynamodb.scanned_count")
1283 )
1284
1285 // DynamoDB.UpdateTable
1286 const (
1287 // The JSON-serialized value of each item in the `AttributeDefinitions` request
1288 // field.
1289 //
1290 // Type: string[]
1291 // RequirementLevel: Optional
1292 // Stability: stable
1293 // Examples: '{ "AttributeName": "string", "AttributeType": "string" }'
1294 AWSDynamoDBAttributeDefinitionsKey = attribute.Key("aws.dynamodb.attribute_definitions")
1295 // The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates`
1296 // request field.
1297 //
1298 // Type: string[]
1299 // RequirementLevel: Optional
1300 // Stability: stable
1301 // Examples: '{ "Create": { "IndexName": "string", "KeySchema": [ {
1302 // "AttributeName": "string", "KeyType": "string" } ], "Projection": {
1303 // "NonKeyAttributes": [ "string" ], "ProjectionType": "string" },
1304 // "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits":
1305 // number } }'
1306 AWSDynamoDBGlobalSecondaryIndexUpdatesKey = attribute.Key("aws.dynamodb.global_secondary_index_updates")
1307 )
1308
1309 // This document defines semantic conventions to apply when instrumenting the GraphQL implementation. They map GraphQL operations to attributes on a Span.
1310 const (
1311 // The name of the operation being executed.
1312 //
1313 // Type: string
1314 // RequirementLevel: Optional
1315 // Stability: stable
1316 // Examples: 'findBookByID'
1317 GraphqlOperationNameKey = attribute.Key("graphql.operation.name")
1318 // The type of the operation being executed.
1319 //
1320 // Type: Enum
1321 // RequirementLevel: Optional
1322 // Stability: stable
1323 // Examples: 'query', 'mutation', 'subscription'
1324 GraphqlOperationTypeKey = attribute.Key("graphql.operation.type")
1325 // The GraphQL document being executed.
1326 //
1327 // Type: string
1328 // RequirementLevel: Optional
1329 // Stability: stable
1330 // Examples: 'query findBookByID { bookByID(id: ?) { name } }'
1331 // Note: The value may be sanitized to exclude sensitive information.
1332 GraphqlDocumentKey = attribute.Key("graphql.document")
1333 )
1334
1335 var (
1336 // GraphQL query
1337 GraphqlOperationTypeQuery = GraphqlOperationTypeKey.String("query")
1338 // GraphQL mutation
1339 GraphqlOperationTypeMutation = GraphqlOperationTypeKey.String("mutation")
1340 // GraphQL subscription
1341 GraphqlOperationTypeSubscription = GraphqlOperationTypeKey.String("subscription")
1342 )
1343
1344 // This document defines the attributes used in messaging systems.
1345 const (
1346 // A string identifying the messaging system.
1347 //
1348 // Type: string
1349 // RequirementLevel: Required
1350 // Stability: stable
1351 // Examples: 'kafka', 'rabbitmq', 'rocketmq', 'activemq', 'AmazonSQS'
1352 MessagingSystemKey = attribute.Key("messaging.system")
1353 // The message destination name. This might be equal to the span name but is
1354 // required nevertheless.
1355 //
1356 // Type: string
1357 // RequirementLevel: Required
1358 // Stability: stable
1359 // Examples: 'MyQueue', 'MyTopic'
1360 MessagingDestinationKey = attribute.Key("messaging.destination")
1361 // The kind of message destination
1362 //
1363 // Type: Enum
1364 // RequirementLevel: ConditionallyRequired (If the message destination is either a
1365 // `queue` or `topic`.)
1366 // Stability: stable
1367 MessagingDestinationKindKey = attribute.Key("messaging.destination_kind")
1368 // A boolean that is true if the message destination is temporary.
1369 //
1370 // Type: boolean
1371 // RequirementLevel: ConditionallyRequired (If value is `true`. When missing, the
1372 // value is assumed to be `false`.)
1373 // Stability: stable
1374 MessagingTempDestinationKey = attribute.Key("messaging.temp_destination")
1375 // The name of the transport protocol.
1376 //
1377 // Type: string
1378 // RequirementLevel: Optional
1379 // Stability: stable
1380 // Examples: 'AMQP', 'MQTT'
1381 MessagingProtocolKey = attribute.Key("messaging.protocol")
1382 // The version of the transport protocol.
1383 //
1384 // Type: string
1385 // RequirementLevel: Optional
1386 // Stability: stable
1387 // Examples: '0.9.1'
1388 MessagingProtocolVersionKey = attribute.Key("messaging.protocol_version")
1389 // Connection string.
1390 //
1391 // Type: string
1392 // RequirementLevel: Optional
1393 // Stability: stable
1394 // Examples: 'tibjmsnaming://localhost:7222',
1395 // 'https://queue.amazonaws.com/80398EXAMPLE/MyQueue'
1396 MessagingURLKey = attribute.Key("messaging.url")
1397 // A value used by the messaging system as an identifier for the message,
1398 // represented as a string.
1399 //
1400 // Type: string
1401 // RequirementLevel: Optional
1402 // Stability: stable
1403 // Examples: '452a7c7c7c7048c2f887f61572b18fc2'
1404 MessagingMessageIDKey = attribute.Key("messaging.message_id")
1405 // The [conversation ID](#conversations) identifying the conversation to which the
1406 // message belongs, represented as a string. Sometimes called "Correlation ID".
1407 //
1408 // Type: string
1409 // RequirementLevel: Optional
1410 // Stability: stable
1411 // Examples: 'MyConversationID'
1412 MessagingConversationIDKey = attribute.Key("messaging.conversation_id")
1413 // The (uncompressed) size of the message payload in bytes. Also use this
1414 // attribute if it is unknown whether the compressed or uncompressed payload size
1415 // is reported.
1416 //
1417 // Type: int
1418 // RequirementLevel: Optional
1419 // Stability: stable
1420 // Examples: 2738
1421 MessagingMessagePayloadSizeBytesKey = attribute.Key("messaging.message_payload_size_bytes")
1422 // The compressed size of the message payload in bytes.
1423 //
1424 // Type: int
1425 // RequirementLevel: Optional
1426 // Stability: stable
1427 // Examples: 2048
1428 MessagingMessagePayloadCompressedSizeBytesKey = attribute.Key("messaging.message_payload_compressed_size_bytes")
1429 )
1430
1431 var (
1432 // A message sent to a queue
1433 MessagingDestinationKindQueue = MessagingDestinationKindKey.String("queue")
1434 // A message sent to a topic
1435 MessagingDestinationKindTopic = MessagingDestinationKindKey.String("topic")
1436 )
1437
1438 // Semantic convention for a consumer of messages received from a messaging system
1439 const (
1440 // A string identifying the kind of message consumption as defined in the
1441 // [Operation names](#operation-names) section above. If the operation is "send",
1442 // this attribute MUST NOT be set, since the operation can be inferred from the
1443 // span kind in that case.
1444 //
1445 // Type: Enum
1446 // RequirementLevel: Optional
1447 // Stability: stable
1448 MessagingOperationKey = attribute.Key("messaging.operation")
1449 // The identifier for the consumer receiving a message. For Kafka, set it to
1450 // `{messaging.kafka.consumer_group} - {messaging.kafka.client_id}`, if both are
1451 // present, or only `messaging.kafka.consumer_group`. For brokers, such as
1452 // RabbitMQ and Artemis, set it to the `client_id` of the client consuming the
1453 // message.
1454 //
1455 // Type: string
1456 // RequirementLevel: Optional
1457 // Stability: stable
1458 // Examples: 'mygroup - client-6'
1459 MessagingConsumerIDKey = attribute.Key("messaging.consumer_id")
1460 )
1461
1462 var (
1463 // receive
1464 MessagingOperationReceive = MessagingOperationKey.String("receive")
1465 // process
1466 MessagingOperationProcess = MessagingOperationKey.String("process")
1467 )
1468
1469 // Attributes for RabbitMQ
1470 const (
1471 // RabbitMQ message routing key.
1472 //
1473 // Type: string
1474 // RequirementLevel: ConditionallyRequired (If not empty.)
1475 // Stability: stable
1476 // Examples: 'myKey'
1477 MessagingRabbitmqRoutingKeyKey = attribute.Key("messaging.rabbitmq.routing_key")
1478 )
1479
1480 // Attributes for Apache Kafka
1481 const (
1482 // Message keys in Kafka are used for grouping alike messages to ensure they're
1483 // processed on the same partition. They differ from `messaging.message_id` in
1484 // that they're not unique. If the key is `null`, the attribute MUST NOT be set.
1485 //
1486 // Type: string
1487 // RequirementLevel: Optional
1488 // Stability: stable
1489 // Examples: 'myKey'
1490 // Note: If the key type is not string, it's string representation has to be
1491 // supplied for the attribute. If the key has no unambiguous, canonical string
1492 // form, don't include its value.
1493 MessagingKafkaMessageKeyKey = attribute.Key("messaging.kafka.message_key")
1494 // Name of the Kafka Consumer Group that is handling the message. Only applies to
1495 // consumers, not producers.
1496 //
1497 // Type: string
1498 // RequirementLevel: Optional
1499 // Stability: stable
1500 // Examples: 'my-group'
1501 MessagingKafkaConsumerGroupKey = attribute.Key("messaging.kafka.consumer_group")
1502 // Client ID for the Consumer or Producer that is handling the message.
1503 //
1504 // Type: string
1505 // RequirementLevel: Optional
1506 // Stability: stable
1507 // Examples: 'client-5'
1508 MessagingKafkaClientIDKey = attribute.Key("messaging.kafka.client_id")
1509 // Partition the message is sent to.
1510 //
1511 // Type: int
1512 // RequirementLevel: Optional
1513 // Stability: stable
1514 // Examples: 2
1515 MessagingKafkaPartitionKey = attribute.Key("messaging.kafka.partition")
1516 // A boolean that is true if the message is a tombstone.
1517 //
1518 // Type: boolean
1519 // RequirementLevel: ConditionallyRequired (If value is `true`. When missing, the
1520 // value is assumed to be `false`.)
1521 // Stability: stable
1522 MessagingKafkaTombstoneKey = attribute.Key("messaging.kafka.tombstone")
1523 )
1524
1525 // Attributes for Apache RocketMQ
1526 const (
1527 // Namespace of RocketMQ resources, resources in different namespaces are
1528 // individual.
1529 //
1530 // Type: string
1531 // RequirementLevel: Required
1532 // Stability: stable
1533 // Examples: 'myNamespace'
1534 MessagingRocketmqNamespaceKey = attribute.Key("messaging.rocketmq.namespace")
1535 // Name of the RocketMQ producer/consumer group that is handling the message. The
1536 // client type is identified by the SpanKind.
1537 //
1538 // Type: string
1539 // RequirementLevel: Required
1540 // Stability: stable
1541 // Examples: 'myConsumerGroup'
1542 MessagingRocketmqClientGroupKey = attribute.Key("messaging.rocketmq.client_group")
1543 // The unique identifier for each client.
1544 //
1545 // Type: string
1546 // RequirementLevel: Required
1547 // Stability: stable
1548 // Examples: 'myhost@8742@s8083jm'
1549 MessagingRocketmqClientIDKey = attribute.Key("messaging.rocketmq.client_id")
1550 // Type of message.
1551 //
1552 // Type: Enum
1553 // RequirementLevel: Optional
1554 // Stability: stable
1555 MessagingRocketmqMessageTypeKey = attribute.Key("messaging.rocketmq.message_type")
1556 // The secondary classifier of message besides topic.
1557 //
1558 // Type: string
1559 // RequirementLevel: Optional
1560 // Stability: stable
1561 // Examples: 'tagA'
1562 MessagingRocketmqMessageTagKey = attribute.Key("messaging.rocketmq.message_tag")
1563 // Key(s) of message, another way to mark message besides message id.
1564 //
1565 // Type: string[]
1566 // RequirementLevel: Optional
1567 // Stability: stable
1568 // Examples: 'keyA', 'keyB'
1569 MessagingRocketmqMessageKeysKey = attribute.Key("messaging.rocketmq.message_keys")
1570 // Model of message consumption. This only applies to consumer spans.
1571 //
1572 // Type: Enum
1573 // RequirementLevel: Optional
1574 // Stability: stable
1575 MessagingRocketmqConsumptionModelKey = attribute.Key("messaging.rocketmq.consumption_model")
1576 )
1577
1578 var (
1579 // Normal message
1580 MessagingRocketmqMessageTypeNormal = MessagingRocketmqMessageTypeKey.String("normal")
1581 // FIFO message
1582 MessagingRocketmqMessageTypeFifo = MessagingRocketmqMessageTypeKey.String("fifo")
1583 // Delay message
1584 MessagingRocketmqMessageTypeDelay = MessagingRocketmqMessageTypeKey.String("delay")
1585 // Transaction message
1586 MessagingRocketmqMessageTypeTransaction = MessagingRocketmqMessageTypeKey.String("transaction")
1587 )
1588
1589 var (
1590 // Clustering consumption model
1591 MessagingRocketmqConsumptionModelClustering = MessagingRocketmqConsumptionModelKey.String("clustering")
1592 // Broadcasting consumption model
1593 MessagingRocketmqConsumptionModelBroadcasting = MessagingRocketmqConsumptionModelKey.String("broadcasting")
1594 )
1595
1596 // This document defines semantic conventions for remote procedure calls.
1597 const (
1598 // A string identifying the remoting system. See below for a list of well-known
1599 // identifiers.
1600 //
1601 // Type: Enum
1602 // RequirementLevel: Required
1603 // Stability: stable
1604 RPCSystemKey = attribute.Key("rpc.system")
1605 // The full (logical) name of the service being called, including its package
1606 // name, if applicable.
1607 //
1608 // Type: string
1609 // RequirementLevel: Recommended
1610 // Stability: stable
1611 // Examples: 'myservice.EchoService'
1612 // Note: This is the logical name of the service from the RPC interface
1613 // perspective, which can be different from the name of any implementing class.
1614 // The `code.namespace` attribute may be used to store the latter (despite the
1615 // attribute name, it may include a class name; e.g., class with method actually
1616 // executing the call on the server side, RPC client stub class on the client
1617 // side).
1618 RPCServiceKey = attribute.Key("rpc.service")
1619 // The name of the (logical) method being called, must be equal to the $method
1620 // part in the span name.
1621 //
1622 // Type: string
1623 // RequirementLevel: Recommended
1624 // Stability: stable
1625 // Examples: 'exampleMethod'
1626 // Note: This is the logical name of the method from the RPC interface
1627 // perspective, which can be different from the name of any implementing
1628 // method/function. The `code.function` attribute may be used to store the latter
1629 // (e.g., method actually executing the call on the server side, RPC client stub
1630 // method on the client side).
1631 RPCMethodKey = attribute.Key("rpc.method")
1632 )
1633
1634 var (
1635 // gRPC
1636 RPCSystemGRPC = RPCSystemKey.String("grpc")
1637 // Java RMI
1638 RPCSystemJavaRmi = RPCSystemKey.String("java_rmi")
1639 // .NET WCF
1640 RPCSystemDotnetWcf = RPCSystemKey.String("dotnet_wcf")
1641 // Apache Dubbo
1642 RPCSystemApacheDubbo = RPCSystemKey.String("apache_dubbo")
1643 )
1644
1645 // Tech-specific attributes for gRPC.
1646 const (
1647 // The [numeric status
1648 // code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC
1649 // request.
1650 //
1651 // Type: Enum
1652 // RequirementLevel: Required
1653 // Stability: stable
1654 RPCGRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
1655 )
1656
1657 var (
1658 // OK
1659 RPCGRPCStatusCodeOk = RPCGRPCStatusCodeKey.Int(0)
1660 // CANCELLED
1661 RPCGRPCStatusCodeCancelled = RPCGRPCStatusCodeKey.Int(1)
1662 // UNKNOWN
1663 RPCGRPCStatusCodeUnknown = RPCGRPCStatusCodeKey.Int(2)
1664 // INVALID_ARGUMENT
1665 RPCGRPCStatusCodeInvalidArgument = RPCGRPCStatusCodeKey.Int(3)
1666 // DEADLINE_EXCEEDED
1667 RPCGRPCStatusCodeDeadlineExceeded = RPCGRPCStatusCodeKey.Int(4)
1668 // NOT_FOUND
1669 RPCGRPCStatusCodeNotFound = RPCGRPCStatusCodeKey.Int(5)
1670 // ALREADY_EXISTS
1671 RPCGRPCStatusCodeAlreadyExists = RPCGRPCStatusCodeKey.Int(6)
1672 // PERMISSION_DENIED
1673 RPCGRPCStatusCodePermissionDenied = RPCGRPCStatusCodeKey.Int(7)
1674 // RESOURCE_EXHAUSTED
1675 RPCGRPCStatusCodeResourceExhausted = RPCGRPCStatusCodeKey.Int(8)
1676 // FAILED_PRECONDITION
1677 RPCGRPCStatusCodeFailedPrecondition = RPCGRPCStatusCodeKey.Int(9)
1678 // ABORTED
1679 RPCGRPCStatusCodeAborted = RPCGRPCStatusCodeKey.Int(10)
1680 // OUT_OF_RANGE
1681 RPCGRPCStatusCodeOutOfRange = RPCGRPCStatusCodeKey.Int(11)
1682 // UNIMPLEMENTED
1683 RPCGRPCStatusCodeUnimplemented = RPCGRPCStatusCodeKey.Int(12)
1684 // INTERNAL
1685 RPCGRPCStatusCodeInternal = RPCGRPCStatusCodeKey.Int(13)
1686 // UNAVAILABLE
1687 RPCGRPCStatusCodeUnavailable = RPCGRPCStatusCodeKey.Int(14)
1688 // DATA_LOSS
1689 RPCGRPCStatusCodeDataLoss = RPCGRPCStatusCodeKey.Int(15)
1690 // UNAUTHENTICATED
1691 RPCGRPCStatusCodeUnauthenticated = RPCGRPCStatusCodeKey.Int(16)
1692 )
1693
1694 // Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/).
1695 const (
1696 // Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC
1697 // 1.0 does not specify this, the value can be omitted.
1698 //
1699 // Type: string
1700 // RequirementLevel: ConditionallyRequired (If other than the default version
1701 // (`1.0`))
1702 // Stability: stable
1703 // Examples: '2.0', '1.0'
1704 RPCJsonrpcVersionKey = attribute.Key("rpc.jsonrpc.version")
1705 // `id` property of request or response. Since protocol allows id to be int,
1706 // string, `null` or missing (for notifications), value is expected to be cast to
1707 // string for simplicity. Use empty string in case of `null` value. Omit entirely
1708 // if this is a notification.
1709 //
1710 // Type: string
1711 // RequirementLevel: Optional
1712 // Stability: stable
1713 // Examples: '10', 'request-7', ''
1714 RPCJsonrpcRequestIDKey = attribute.Key("rpc.jsonrpc.request_id")
1715 // `error.code` property of response if it is an error response.
1716 //
1717 // Type: int
1718 // RequirementLevel: ConditionallyRequired (If response is not successful.)
1719 // Stability: stable
1720 // Examples: -32700, 100
1721 RPCJsonrpcErrorCodeKey = attribute.Key("rpc.jsonrpc.error_code")
1722 // `error.message` property of response if it is an error response.
1723 //
1724 // Type: string
1725 // RequirementLevel: Optional
1726 // Stability: stable
1727 // Examples: 'Parse error', 'User already exists'
1728 RPCJsonrpcErrorMessageKey = attribute.Key("rpc.jsonrpc.error_message")
1729 )