Skip to content

[extension/beatsauthextension] Use the component status API to report errors #768

@cmacknz

Description

@cmacknz

If the beatsauthextension encounters a fatal error it returns an error, which eventually causes the collector to exit.

For example, invalid or non-existent certificates will be detected we unpacking the configuration for use via elastic-agent-libs

Instead of causing the collector to exit, the extension should (perhaps optionally) report it's status as failed via the component status API https://pkg.go.dev/go.opentelemetry.io/collector/component/componentstatus

Ultimately the goal of this is that failures can be associated back to the relevant Elastic Agent output as is the case for Beats based ingest today: elastic/elastic-agent#9771

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