APM Flask - Treating all transactions as Errors

Jasonespo
Fri, 22 Sep 2023 10:35:22 +0000
APM

Kibana version: 8.9.1

Elasticsearch version: 8.9.1

APM Server version: 8.9.1

APM Agent language and version: Python (Flask) 6.18.0

We are trying to build a proof of concept using Elastic APM and are running into a situation where all of our logs are being treated as errors. Our aim is to have a centralised dashboard for viewing all of our logs and seeing a transaction flow between services.

Although Elastic suggest only sending WARNING and ERROR we are just testing the solution and sending all our transactions/logs to Elastic APM via the agent.

Even a simple log message like below is showing as an error in our dashboard.

        logger.info(
            f"DBSelect, connection created, others - {others}"
        )

Screenshot of error:

Edit: there is also nothing in the Exception Stack Trace only the Log Stack Trace

Or is this tool designed to only support error logging and thus is treating everything as an error?

I see the:

error.log.level
info

Any ideas? Thanks in advance

7 posts - 3 participants