Skip to content

Better declarative config error messages #7949

@jack-berg

Description

@jack-berg

When an error occurs in declarative config, the error message should tell you the location in the document where the error occurred.

Currently, we only give generic errors of the form "batch span processor exporter is required but is null". These messages can be ambiguous since its possible to have multiple processors. Even when unambiguous, they're more difficult to parse and fix than something that includes document context like: .tracer_provider.processors[0].batch exporter is required but is null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestSuggest an idea for this project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions