개요
It is critical for your system’s health to consistently monitor the errors collected by Datadog. When there are many individual error events, it becomes hard to prioritize errors for troubleshooting.
Error Tracking simplifies debugging by grouping thousands of similar errors into a single issue. An issue is an aggregation of error data that provides insights such as
- How many users have been impacted
- When the error first occurred
- Which commit probably caused the error
Error Tracking enables you to:
- Track, triage, and debug fatal errors
- Group similar errors into issues, so that you can more easily identify important errors and reduce noise
- Set monitors on error tracking events, such as high error volume or new issues
- Follow issues over time to know when they first started, if they are still ongoing, and how often they occur
설정
오류 추적은 APM에서 지원하는 모든 언어에 사용할 수 있으며 다른 SDK를 사용할 필요가 없습니다.
(선택 사항) 스택 트레이스에서 코드 스니펫을 확인하려면 GitHub 통합을 설정하세요.
리포지토리 설정을 시작하려면 소스 코드 통합 문서를 참조하세요.
스팬(span) 속성을 사용하여 오류 스팬 추적
Datadog 트레이서는 백엔드 서비스 소스 코드의 통합 및 수동 계측을 통해 오류를 수집합니다. 오류 추적은 오류가 서비스 항목 스팬에 있는지 여부에 관계없이 서비스 수준에서 발생하는 경우 트레이스 내에서 오류 스팬을 처리합니다. 이 스팬에는 추적할 error.stack
, error.message
, error.type
스팬 속성도 포함되어야 합니다.
오류 추적은 오류 유형, 오류 메시지 및 스택 트레이스를 형성하는 프레임을 사용하여 처리할 각 오류 스팬의 지문을 계산합니다. 동일한 지문이 있는 오류는 그룹화되며 동일한 이슈에 속합니다. 자세한 내용은 트레이스 탐색기 문서를 참조하세요.
트러블슈팅 또는 디버깅을 시작하기 위한 이슈 검토
오류 추적은 오류 추적 탐색기를 통해 백엔드 서비스에서 수집한 오류를 이슈로 자동 분류합니다. 주요 기능을 살펴보려면 오류 추적 탐색기 설명서를 참조하세요.
애플리케이션 성능 모니터링(APM) 분포에서 생성된 이슈에는 영향을 받은 스팬, 가장 관련된 최신 스택 트레이스, 스팬 속성, 호스트 태그, 컨테이너 태그 및 메트릭이 있습니다.
참고 자료