• EnglishEspañol日本語한국어Português
  • 로그인지금 시작하기

사용자의 편의를 위해 제공되는 기계 번역입니다.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

문제 신고

로다 계측

New Relic Ruby 에이전트는 Roda 3.19.0 이상을 자동으로 계측합니다.

중요

Roda 계측에는 Ruby 에이전트 버전 9.4.0 이상이 필요합니다.

시작하기

New Relic으로 Roda 앱을 설정하려면:

  1. newrelic_rpm gem을 Gemfile에 추가하고 묶습니다.

    gem 'newrelic_rpm'
  2. Roda 앱에서 Roda require 지시문 아래에 require 'newrelic_rpm' 추가합니다. 예를 들어:

    require 'roda'
    require 'newrelic_rpm'
    class App < Roda
    route do |r|
    r.root do
    "Hello World!"
    end
    end
    end

경로 무시

Ruby 에이전트 버전 9.6.0 이상에서는 특정 경로 무시를 지원합니다. 이러한 값을 지정하려면 Roda 애플리케이션을 정의하는 데 사용하는 것과 동일한 스타일의 경로를 사용하십시오. 예를 들어 Roda 앱에서 hello_world 경로를 무시하려면 route 블록 외부에 newrelic_ignore '/hello_word' 선언합니다.

newrelic_ignore '/hello_world'
route do |r|
r.on '/hello_world' do
"Hello World!"
end
end

전체 애플리케이션을 무시하려면(예: 마운트된 애플리케이션에서) 매개변수 없이 newrelic_ignore 를 호출합니다.

newrelic_ignore

또한 newrelic_ignore_apdexnewrelic_ignore_enduser 이 지원됩니다.

  • newrelic_ignore_apdex 호출은 전체 Apdex 계산에서 주어진 경로를 고려 대상에서 제외합니다.
  • newrelic_ignore_enduser 호출은 경로가 렌더링될 때 페이지 로드 타이밍 JavaScript의 자동 삽입을 방지합니다.

중요

모든 newrelic_ignore* 메서드는 route 블록 외부에서 호출되어야 합니다.

랙 계측

랙 기반 프레임워크인 Roda 계측이 제대로 작동하려면 랙 계측이 필요합니다. 랙 계측은 기본적으로 활성화되어 있습니다.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.