error.exception.message not truncated
See original GitHub issueDescribe the bug
Not sure if this is by design but error.exception.message
is not truncated which creates problems when it’s too long (e.g. knex includes the whole SQL query in the message).
Expected behavior I’d expect it to be truncated like other fields.
Environment (please complete the following information)
- OS: Linux
- Node.js version: 8
- APM Server version: 6.2.4
- Agent version: 1.6.0
How are you starting the agent? (please tick one of the boxes)
- Calling
agent.start()
directly (e.g.require('elastic-apm-node').start(...)
) - Requiring
elastic-apm-node/start
from within the source code - Starting node with
-r elastic-apm-node/start
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Guzzle Error Message gets truncated - Laracasts
I am using a try/catch already - but strange, for both Exception and the \GuzzleHttp\Exception\ClientException there is no getBody() method. I have setup...
Read more >Error logging is truncated in Laravel of Guzzle http
Guzzle http is truncating exceptions with more than 120 characters, but I need to log the full exception message. How can I do...
Read more >Exception Message truncation isn't so friendly #2185 - GitHub
(truncated). I'm using Laravel and Bugsnag, so error handling and reporting is pretty much out of the box. I tried catching the Guzzle ......
Read more >Solving: Guzzle errors truncated - A Laravel and PHP Blog
use GuzzleHttp\Client; use Exception; try { $client = new Client; ... when there is an error returned from the API the errors are...
Read more >How do I get the un-truncated error message from dblog?
Drupal is using debug_backtrace() for displaying and Exception::getTraceAsString was added for logging in Drupal 8.2.x. See the change record.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
my 2c: If we only had the dashboards, I’d say truncate in the agents. But some users might chose a different output (eg Kafka) and/or they might want to consumer the data differently, and they might not want us to truncate too aggressively. So I think we should truncate in the agents to something reasonable from a data processing perspective (a few Mbs is reasonable I think, but not a few Gbs) and truncate it further in the UI to something reasonable for displaying.
I’ve opened an issue in the APM Server repo (as that’s where the dashboards live) to make sure this gets fixed: https://github.com/elastic/apm-server/issues/1021