elastic / elastic/apm-server

APM Server Logs Errors at Info Level

Open
#4,068 3 comments 0 reactions 1 assignee Claimed by @simitt View on GitHub
Dominant language
Go
Stars
1.3k
Forks
543
Avg merge
1d 18h
Merged PRs (30d)
109

Description

**Describe the bug**
APM server incorrectly logs error messages at info level.

example log messages (host names are redacted):
```
...
info client/metadata fetching metadata for [apm-6.8.7] from broker :
info Failed to connect to broker :: dial tcp: i/o timeout
info kafka message: client/metadata got error from broker while fetching metadata:%!(EXTRA *net.OpError=dial tcp: i/o timeout)
...
```

**To Reproduce**
- APM server is using Kafka output.
- Kafka brokers were having internal errors due to failure to connect to Zookeeper hosts.
- Kafka brokers were reachable but unable to accept client connection/data.
- APM server is unable to send data to Kafka brokers and log error messages at info level.

**Expected behavior**
I expect these messages to be logged at a warning level or higher.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.