백엔드 서비스 오류 추적

개요

오류 추적 탐색기에서 확인된 문제의 세부정보

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 통합을 설정하세요.

스택 트레이스의 인라인 코드 스니펫

리포지토리 설정을 시작하려면 소스 코드 통합 문서를 참조하세요.

스팬 태그를 사용하여 오류 스팬 추적

Datadog 트레이서는 백엔드 서비스 소스 코드의 통합 및 수동 계측을 통해 오류를 수집합니다. 오류가 서비스 항목 스팬(최상위 서비스 스팬)에 있는 경우 트레이스 내의 오류 스팬은 오류 추적에 의해 처리됩니다. 이 스팬에는 추적할 error.stack, error.messageerror.type 스팬 태그도 포함되어야 합니다.

오류가 있는 플레임 그래프

오류 추적은 오류 유형, 오류 메시지 및 스택 트레이스를 형성하는 프레임을 사용하여 처리할 각 오류 스팬의 지문을 계산합니다. 동일한 지문이 있는 오류는 그룹화되며 동일한 이슈에 속합니다. 자세한 내용은 트레이스 탐색기 문서를 참조하세요.

트러블슈팅 또는 디버깅을 시작하기 위한 이슈 검토

오류 추적은 오류 추적 탐색기를 통해 백엔드 서비스에서 수집한 오류를 이슈로 자동 분류합니다. 주요 기능을 살펴보려면 오류 추적 탐색기 설명서를 참조하세요.

APM에서 생성된 이슈에는 영향을 받은 스팬의 분포, 가장 관련성이 높은 최신 스택 트레이스, 스팬 태그, 호스트 태그, 컨테이너 태그 및 메트릭이 포함됩니다.

참고 자료