- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
",t};e.buildCustomizationMenuUi=t;function n(e){let t='
",t}function s(e){let n=e.filter.currentValue||e.filter.defaultValue,t='${e.filter.label}
`,e.filter.options.forEach(s=>{let o=s.id===n;t+=``}),t+="${e.filter.label}
`,t+=`You must be running:
2.7+
. JRuby and TruffleRuby are not supported.datadog
) v2.16.0+
.Before you begin, make sure you’ve already installed and configured the Agent. You also need to add the tracing library directly in the application to instrument it.
To enable automatic reporting of handled errors, you can set one of these two environment variables:
DD_ERROR_TRACKING_HANDLED_ERRORS
user
, third_party
, all
.DD_ERROR_TRACKING_HANDLED_ERRORS_INCLUDE
main
to instrument the main.rb
file.subdir
to instrument every Ruby file in folders named subdir
.rails
to instrument every Ruby file in the rails
gem and every Ruby file in folders named rails
./
): For example, /app/lib/mypackage/main.rb
to instrument that file or /app/lib/mypackage
to instrument every Ruby file in that folder../
): For example, if you execute your program in /app/
, use ./lib/mypackage/main.rb
to instrument the main.rb
file, or ./lib/mypackage/
to instrument every Ruby file in that folder.For Ruby v3.3+
, the location where the error was rescued will be matched.
Alternatively, you can set either of these error tracking parameters in code, inside a Datadog.configure
block:
c.error_tracking.handled_errors
to report handled errors from user code, third-party gems, or both. Accepted values are: user,third_party,all
.c.error_tracking.handled_errors_include
to provide a list of comma-separated paths, file names, and gem names for which handled errors will be reported. Possible values are specified under DD_ERROR_TRACKING_HANDLED_ERRORS_INCLUDE
in the previous table. For Ruby v3.3+
, the location where the error was rescued will be matched. For earlier versions of Ruby, the location where the error was raised will be matched.Datadog.configure do |c|
# To report handled errors from user code
c.error_tracking.handled_errors = 'user'
# Or to provide a list of comma-separated paths, file names, and gem names for which handled errors will be reported
c.error_tracking.handled_errors_include = ['sinatra', 'subdir']
end