Skip to content

Clarify documentation about the interaction of recordError and setStatus #167

Open
@czechboy0

Description

@czechboy0

Currently the docs aren't prescriptive enough, which can make switching between tracing backends more difficult.

For example, does recordError imply:

  1. An error occurred during the span, and the span should be considered errored as well, regardless of calls to setStatus
  2. An error occurred during the span, and the span should be considered errored as well, unless setStatus was called with OK
  3. An error occurred during the span, but the overall status of the span should not be considered errored (unless setStatus is also called with Error)
  4. An error occurred during the span, and as a library we don't attribute any specific semantic meaning to the corresponding status of the span
  5. Something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions