You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
specification. At the time of writing the specification defines one flag - the
208
-
SAMPLED flag.
210
+
SAMPLED flag. This field is optional.
209
211
210
212
### Severity Fields
211
213
212
214
#### Field: `SeverityText`
213
215
214
216
Type: string.
215
217
216
-
Description: the severity text (also known as log level). This is an optional
217
-
field and is the original string representation as it is known at the source. If
218
-
this field is missing and `SeverityNumber` is present then the short name that
219
-
corresponds to the `SeverityNumber` may be used as a substitution.
218
+
Description: severity text (also known as log level). This is the original
219
+
string representation of the severity as it is known at the source. If this
220
+
field is missing and `SeverityNumber` is present then the short name that
221
+
corresponds to the `SeverityNumber` may be used as a substitution. This field is
222
+
optional.
220
223
221
224
#### Field: `SeverityNumber`
222
225
223
226
Type: number.
224
227
225
228
Description: numerical value of the severity, normalized to values described in
226
-
this document. This is an optional field.
229
+
this document. This field is optional.
227
230
228
231
`SeverityNumber` is an integer number. Smaller numerical values correspond to
229
232
less severe events (such as debug events), larger numerical values correspond to
@@ -365,20 +368,21 @@ corresponding short names).
365
368
366
369
When severity is used in equality or inequality comparisons (for example in
367
370
filters in the UIs) the recommendation is to attempt to use both `SeverityText`
368
-
and short name of `SeverityNumber` to perform matches. For example if we have a
369
-
record with `SeverityText` field equal to "Informational" and `SeverityNumber`
370
-
field equal to INFO then it may be preferable from the user experience
371
-
perspective to ensure that **severity="Informational"** and **severity="INFO"**
372
-
conditions both to are TRUE for that record.
371
+
and short name of `SeverityNumber` to perform matches (i.e. equality with either
372
+
of these fields should be considered a match). For example if we have a record
373
+
with `SeverityText` field equal to "Informational" and `SeverityNumber` field
374
+
equal to INFO then it may be preferable from the user experience perspective to
375
+
ensure that **severity="Informational"** and **severity="INFO"** conditions both
376
+
to are TRUE for that record.
373
377
374
378
### Field: `ShortName`
375
379
376
380
Type: string.
377
381
378
382
Description: Short event identifier that does not contain varying parts.
379
383
`ShortName` describes what happened (e.g. "ProcessStarted"). Recommended to be
380
-
no longer than 50 characters. Optional. Not guaranteed to be unique in any way.
381
-
Typically used for filtering and grouping purposes in backends.
384
+
no longer than 50 characters. Not guaranteed to be unique in any way. Typically
385
+
used for filtering and grouping purposes in backends. This field is optional.
382
386
383
387
### Field: `Body`
384
388
@@ -388,7 +392,7 @@ Description: A value containing the body of the log record (see the description
388
392
of `any` type above). Can be for example a human-readable string message
389
393
(including multi-line) describing the event in a free form or it can be a
390
394
structured data composed of arrays and maps of other values. Can vary for each
391
-
occurrence of the event coming from the same source.
395
+
occurrence of the event coming from the same source. This field is optional.
392
396
393
397
### Field: `Resource`
394
398
@@ -404,6 +408,7 @@ Data formats that represent this data model may be designed in a manner that
404
408
allows the `Resource` field to be recorded only once per batch of log records
405
409
that come from the same source. SHOULD follow OpenTelemetry
406
410
[semantic conventions for Resources](https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/resource/semantic_conventions).
411
+
This field is optional.
407
412
408
413
### Field: `Attributes`
409
414
@@ -414,7 +419,7 @@ of each pair is of `any` type. Unlike the `Resource` field, which is fixed for a
414
419
particular source, `Attributes` can vary for each occurrence of the event coming
415
420
from the same source. Can contain information about the request context (other
416
421
than TraceId/SpanId). SHOULD follow OpenTelemetry
417
-
[semantic conventions for Attributes](https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/trace/semantic_conventions).
422
+
[semantic conventions for Attributes](https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/trace/semantic_conventions). This field is optional.
0 commit comments