Debian Codegraph @

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