File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ release.
15
15
16
16
### Logs
17
17
18
+ - Move ` event.domain ` from InstrumentationScope attributes to LogRecord
19
+ attributes.
20
+ ([ #2940 ] ( https://github.com/open-telemetry/opentelemetry-specification/pull/2940 ) )
21
+
18
22
### Resource
19
23
20
24
### Semantic Conventions
Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ the scope has a version (e.g. a library version). Example value: 1.0.0.
92
92
- ` schema_url ` (optional): Specifies the Schema URL that should be recorded in
93
93
the emitted telemetry.
94
94
- ` event_domain ` (optional): Specifies the domain for the Events emitted, which
95
- should be added as ` event.domain ` attribute of the instrumentation scope.
95
+ MUST be added as an attribute with the key ` event.domain `
96
+ to [ emitted Events] ( #emit-event ) .
96
97
- ` include_trace_context ` (optional): Specifies whether the Trace Context should
97
98
automatically be passed on to the Events and Logs emitted by the Logger. This
98
99
SHOULD be true by default.
@@ -153,7 +154,8 @@ This function MAY be named `logEvent`.
153
154
* ` logRecord ` - the [ LogRecord] ( #logrecord ) representing the Event.
154
155
155
156
Events require the ` event.domain ` attribute. The API MUST not allow creating an
156
- Event if the Logger instance doesn't have ` event.domain ` scope attribute.
157
+ Event if ` event_domain ` was not specified when
158
+ the [ Logger was obtained] ( #get-a-logger ) .
157
159
158
160
#### Emit LogRecord
159
161
Original file line number Diff line number Diff line change 4
4
5
5
This document describes the attributes of standalone Events that are represented
6
6
in the data model by ` LogRecord ` s. Events are recorded as LogRecords that are shaped
7
- in a special way:
8
-
9
- - They have a LogRecord attribute ` event.name ` (and possibly other LogRecord attributes).
10
- - They have an InstrumentationScope with a non-empty ` Name ` and with an
11
- InstrumentationScope attribute ` event.domain ` (and possibly other InstrumentationScope attributes).
7
+ in a special way: Event LogRecords have the attributes ` event.domain `
8
+ and ` event.name ` (and possibly other LogRecord attributes).
12
9
13
10
The ` event.domain ` attribute is used to logically separate events from different
14
11
systems. For example, to record Events from browser apps, mobile apps and
You can’t perform that action at this time.
0 commit comments