Skip to content

Rule proposal: This should be a span, not a log #25

@svrnm

Description

@svrnm

Proposal

Rule ID: LOG-TBD

Description: Log records that clearly should be a span.

Rationale: When a developer writes log statements in their code, they should always consider, if what they are defining is actually a point in time, or the start or end of a time span. If it is the latter, they should use tracing instead, such that an observability backend can visualize the duration better. This increases the quality of the observability data.

Target: Log

Criteria: to be defined, maybe there is a way to identify certain key words or attributes in logs that make it obvious that they should be a span (e.g. "BEGIN" or "END")

Impact: to be defined

Type: to be defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions