elastic / elastic/beats

[metricbeat][Kafka] Improve error logging

Open
#48,295 1 comment 0 reactions 0 assignees View on GitHub
needs_team
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 15m
Merged PRs (30d)
385

Description

There is at least one place i the module where error itself isn't logged which makes it difficult to troubleshoot - https://github.com/elastic/beats/blob/ff9d3fa7c5bd121e60b7279a05dec4130bd54c78/metricbeat/module/kafka/consumergroup/query.go#L120

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

Contributor guide

Open the contributing guide

Research direction

Start in metricbeat/module/kafka/consumergroup/query.go around line 120 and inspect the referenced log statement. Then search the Kafka module for other log statements that omit an error; done means the relevant errors are included in logging wherever the issue identifies missing context.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kafka
Domain
observability-sre, stream-processing
Issue type
Bug
Difficulty
2/5
Estimated time
Half a day
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.