@@ -33,7 +33,40 @@ namespace SemanticConventions
33
33
/* *
34
34
* The URL of the OpenTelemetry schema for these keys and values.
35
35
*/
36
- static constexpr const char *SCHEMA_URL = " https://opentelemetry.io/schemas/1.13.0" ;
36
+ static constexpr const char *SCHEMA_URL = " https://opentelemetry.io/schemas/1.14.0" ;
37
+
38
+ /* *
39
+ * The type of the exception (its fully-qualified class name, if applicable). The dynamic type of
40
+ * the exception should be preferred over the static type in languages that support it.
41
+ */
42
+ static constexpr const char *EXCEPTION_TYPE = " exception.type" ;
43
+
44
+ /* *
45
+ * The exception message.
46
+ */
47
+ static constexpr const char *EXCEPTION_MESSAGE = " exception.message" ;
48
+
49
+ /* *
50
+ * A stacktrace as a string in the natural representation for the language runtime. The
51
+ * representation is to be determined and documented by each language SIG.
52
+ */
53
+ static constexpr const char *EXCEPTION_STACKTRACE = " exception.stacktrace" ;
54
+
55
+ /* *
56
+ * The name identifies the event.
57
+ */
58
+ static constexpr const char *EVENT_NAME = " event.name" ;
59
+
60
+ /* *
61
+ * The domain identifies the context in which an event happened. An event name is unique only within
62
+ a domain.
63
+ *
64
+ * <p>Notes:
65
+ <ul> <li>An {@code event.name} is supposed to be unique only in the context of an
66
+ {@code event.domain}, so this allows for two events in different domains to
67
+ have same {@code event.name}, yet be unrelated events.</li> </ul>
68
+ */
69
+ static constexpr const char *EVENT_DOMAIN = " event.domain" ;
37
70
38
71
/* *
39
72
* The full invoked ARN as provided on the {@code Context} passed to the function ({@code
@@ -224,42 +257,6 @@ static constexpr const char *DB_MONGODB_COLLECTION = "db.mongodb.collection";
224
257
*/
225
258
static constexpr const char *DB_SQL_TABLE = " db.sql.table" ;
226
259
227
- /* *
228
- * The type of the exception (its fully-qualified class name, if applicable). The dynamic type of
229
- * the exception should be preferred over the static type in languages that support it.
230
- */
231
- static constexpr const char *EXCEPTION_TYPE = " exception.type" ;
232
-
233
- /* *
234
- * The exception message.
235
- */
236
- static constexpr const char *EXCEPTION_MESSAGE = " exception.message" ;
237
-
238
- /* *
239
- * A stacktrace as a string in the natural representation for the language runtime. The
240
- * representation is to be determined and documented by each language SIG.
241
- */
242
- static constexpr const char *EXCEPTION_STACKTRACE = " exception.stacktrace" ;
243
-
244
- /* *
245
- * SHOULD be set to true if the exception event is recorded at a point where it is known that the
246
- exception is escaping the scope of the span.
247
- *
248
- * <p>Notes:
249
- <ul> <li>An exception is considered to have escaped (or left) the scope of a span,
250
- if that span is ended while the exception is still logically "in flight".
251
- This may be actually "in flight" in some languages (e.g. if the exception
252
- is passed to a Context manager's {@code __exit__} method in Python) but will
253
- usually be caught at the point of recording the exception in most languages.</li><li>It is usually
254
- not possible to determine at the point where an exception is thrown whether it will escape the scope
255
- of a span. However, it is trivial to know that an exception will escape, if one checks for an active
256
- exception just before ending the span, as done in the <a href="#recording-an-exception">example
257
- above</a>.</li><li>It follows that an exception may still escape the scope of the span even if the
258
- {@code exception.escaped} attribute was not set or set to false, since the event might have been
259
- recorded at a time where it was not clear whether the exception will escape.</li> </ul>
260
- */
261
- static constexpr const char *EXCEPTION_ESCAPED = " exception.escaped" ;
262
-
263
260
/* *
264
261
* Type of the trigger which caused this function execution.
265
262
*
@@ -961,32 +958,17 @@ static constexpr const char *RPC_JSONRPC_ERROR_CODE = "rpc.jsonrpc.error_code";
961
958
*/
962
959
static constexpr const char *RPC_JSONRPC_ERROR_MESSAGE = " rpc.jsonrpc.error_message" ;
963
960
964
- /* *
965
- * Whether this is a received or sent message.
966
- */
967
- static constexpr const char *MESSAGE_TYPE = " message.type" ;
968
-
969
- /* *
970
- * MUST be calculated as two different counters starting from {@code 1} one for sent messages and
971
- one for received message.
972
- *
973
- * <p>Notes:
974
- <ul> <li>This way we guarantee that the values will be consistent between different
975
- implementations.</li> </ul>
976
- */
977
- static constexpr const char *MESSAGE_ID = " message.id" ;
978
-
979
- /* *
980
- * Compressed size of the message in bytes.
981
- */
982
- static constexpr const char *MESSAGE_COMPRESSED_SIZE = " message.compressed_size" ;
983
-
984
- /* *
985
- * Uncompressed size of the message in bytes.
986
- */
987
- static constexpr const char *MESSAGE_UNCOMPRESSED_SIZE = " message.uncompressed_size" ;
988
-
989
961
// Enum definitions
962
+ namespace EventDomainValues
963
+ {
964
+ /* * Events from browser apps. */
965
+ static constexpr const char *BROWSER = " browser" ;
966
+ /* * Events from mobile apps. */
967
+ static constexpr const char *DEVICE = " device" ;
968
+ /* * Events from Kubernetes. */
969
+ static constexpr const char *K8S = " k8s" ;
970
+ } // namespace EventDomainValues
971
+
990
972
namespace OpentracingRefTypeValues
991
973
{
992
974
/* * The parent Span depends on the child Span in some capacity. */
@@ -1355,14 +1337,6 @@ static constexpr const int DATA_LOSS = 15;
1355
1337
static constexpr const int UNAUTHENTICATED = 16 ;
1356
1338
} // namespace RpcGrpcStatusCodeValues
1357
1339
1358
- namespace MessageTypeValues
1359
- {
1360
- /* * sent. */
1361
- static constexpr const char *SENT = " SENT" ;
1362
- /* * received. */
1363
- static constexpr const char *RECEIVED = " RECEIVED" ;
1364
- } // namespace MessageTypeValues
1365
-
1366
1340
} // namespace SemanticConventions
1367
1341
} // namespace trace
1368
1342
OPENTELEMETRY_END_NAMESPACE
0 commit comments