apex / apex/up

Errors are reported in many lines

未关闭
#830 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
8.8k
派生
383
PR 合并指标
30 天内没有已合并 PR

描述

## Prerequisites

* [X] I am running the latest version. (`up upgrade`)
* [X] I searched to see if the issue already exists.
* [ ] I inspected the verbose debug output with the `-v, --verbose` flag.
* [X] Are you an Up Pro subscriber?

## Description

We are using Up in 3 production systems; we are very happy... however, we ran into an issue or rather an _**inconvenience**_. We began using DataDog a couple of months ago. We are sending our cloudwatch logs to DataDog. One thing we noticed is that the error logs have multiple lines reported for one error.

For instance, on the patterns page in DataDog, I have an error that begins with "Patch rejected Error..." but you also see a bunch of error lines that begin with "at..." (see below).

You can see (Corresponding AWS Cloudwatch logs) that the "Patch rejected Error..." in one one line and the next line begins the stack trace " at t(/var/task/...".

Our question is, if there's a way to report errors as **one error entry** instead of reporting the error in **multiple lines** as we are seeing now.

## Steps to Reproduce

**DataDog - Error Patterns:**
![image](https://user-images.githubusercontent.com/742739/129778609-50fb5f90-5b36-4ba6-9cd3-4f66b3c61571.png)

**DataDog - Error List:**
![image](https://user-images.githubusercontent.com/742739/129778671-56833d52-93d3-4a8a-afb3-2f4c6337d1a9.png)

**DataDog - Error Detail:**
![image](https://user-images.githubusercontent.com/742739/129778697-409dc954-9ce2-4edd-8632-84ff2c1b6abc.png)

**DataDog - Error in Context:**
![image](https://user-images.githubusercontent.com/742739/129778757-ceef587e-931b-4b3a-8f88-161c7a671ca1.png)

**Corresponding AWS Cloudwatch logs:**
![image](https://user-images.githubusercontent.com/742739/129778814-7e7bf879-323d-49af-b89f-b6f60d98612b.png)

## Slack

Join us on Slack https://chat.apex.sh/

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。