• 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.

問題を作成する

シーケルのインストルメント

the Sequel database toolkit を Ruby のインストルメント用 ORM として使用している場合、New Relic はアプリケーションのデータベース使用状況を把握することができます。

続編の設定

New Relic の Sequel インストルメンテーションは、Sequel::Models のプラグインと、Sequel::Databases のエクステンションによって実装されています。New Relic がロードされたときに Sequel が知っているデータベースハンドルはすべて自動的にインスツルメンテーションされますが、3.47.0 より前のバージョンの Sequel を使用している場合、インスツルメンテーションがロードされた後にデータベースを作成した場合は、自分でエクステンションを追加する必要があります。

db = Sequel.connect( ... )
db.extension :newrelic_instrumentation

3.47.0 以降のバージョンDatabase.extensionを使用して、新しい接続用の拡張機能を自動的にインストールします。

シーケンスの無効化

モデルまたはデータベース接続を計測したくない場合は、 newrelic.ymldisable_sequel_instrumentationtrueに設定して、Sequel 計測を無効にすることができます。

Copyright © 2024 New Relic株式会社。

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