|
30 | 30 | + [Comparing Severity](#comparing-severity)
|
31 | 31 | * [Field: `Body`](#field-body)
|
32 | 32 | * [Field: `Resource`](#field-resource)
|
| 33 | + * [Field: `InstrumentationScope`](#field-instrumentationscope) |
33 | 34 | * [Field: `Attributes`](#field-attributes)
|
34 | 35 | + [Errors and Exceptions](#errors-and-exceptions)
|
35 | 36 | - [Example Log Records](#example-log-records)
|
@@ -194,6 +195,7 @@ SeverityText |The severity text (also known as log level).
|
194 | 195 | SeverityNumber |Numerical value of the severity.
|
195 | 196 | Body |The body of the log record.
|
196 | 197 | Resource |Describes the source of the log.
|
| 198 | +InstrumentationScope|Describes the scope that emitted the log. |
197 | 199 | Attributes |Additional information about the event.
|
198 | 200 |
|
199 | 201 | Below is the detailed description of each field.
|
@@ -436,6 +438,20 @@ from the same source. SHOULD follow OpenTelemetry
|
436 | 438 | [semantic conventions for Resources](../resource/semantic_conventions/README.md).
|
437 | 439 | This field is optional.
|
438 | 440 |
|
| 441 | +### Field: `InstrumentationScope` |
| 442 | + |
| 443 | +Type: (Name,Version) tuple of strings. |
| 444 | + |
| 445 | +Description: the [instrumentation scope](../glossary.md#instrumentation-scope). |
| 446 | +Multiple occurrences of events coming from the same scope can happen across time and |
| 447 | +they all have the same value of `InstrumentationScope`. For log sources which define |
| 448 | +a logger name (e.g. Java |
| 449 | +[Logger Name](https://docs.oracle.com/javase/7/docs/api/java/util/logging/Logger.html#getLogger(java.lang.String))) |
| 450 | +the Logger Name SHOULD be recorded as the Instrumentation Scope name. |
| 451 | + |
| 452 | +Version is optional. Name SHOULD be specified if version is specified, otherwise Name |
| 453 | +is optional. |
| 454 | + |
439 | 455 | ### Field: `Attributes`
|
440 | 456 |
|
441 | 457 | Type: `map<string, any>`.
|
|
0 commit comments