Skip to content

[metricbeat][Kafka] Improve error logging #48295

@stefans-elastic

Description

@stefans-elastic

There is at least one place i the module where error itself isn't logged which makes it difficult to troubleshoot -

logger.Errorf("failed to fetch offset for (topic, partition): ('%v', %v)", topic, partition)

Update the log statement to include error itself. Check for any other places in the code where log statement might be lacking error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs_teamIndicates that the issue/PR needs a Team:* label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions