o11y.ing
spec 1.2.0

    GitHub
    log record

    Log Record Attributes

    libo11y.log.record

    stability development

    Attributes libo11y attaches or requires on log records. trace_id and span_id are reserved top-level console keys written only by the correlation layer. SeverityNumber maps from slog as slog.Level + 9.

    01Attributes8

    AttributeSensitivityRequirementSignalsSource
    error.type upstream public conditionally requiredOn records of severity ERROR or higher.
    exception.type upstream public conditionally requiredOn exception records, unless exception.message is present.
    exception.message upstream internal conditionally requiredOn exception records, unless exception.type is present.
    exception.stacktrace upstream internal recommended
    code.function.name upstream public opt-in
    code.file.path upstream internal opt-in
    code.line.number upstream public opt-in
    o11y.log.source public conditionally requiredOn records captured from console.

    02In the specification