• /
  • EnglishEspañolFrançais日本語한국어Português
  • ログイン今すぐ開始

Ruby agent release notesRSS

August 6
Ruby agent v10.7.0

重要

最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。

エージェントのリリースとサポート日については、New Relic Ruby エージェントのEOL ポリシーを参照してください。

v10.7.0

  • 機能: transaction_tracer.cap_segment_artifactsを追加設定オプション

    多数のセグメントを持つ長時間実行されるトランザクションは、トランザクションの存続期間中、メモリ使用量を継続的に増加させる可能性があります。エージェントは、オプトインのtransaction_tracer.cap_segment_artifacts設定オプションを提供するようになりました(デフォルトはfalseです)。有効にすると、transaction_tracer.limit_segmentsに達した時点で、エージェントはそのトランザクションで後から作成されたセグメントの排他的時間の記録も停止します。これにより、トランザクションのタイミングデータの精度は低下しますが、メモリ使用量は削減されます。PR#3615

  • 機能: Puma server-statisticsの計装を追加

    エージェントは、Pumaのクラスタ全体のサーバー統計をサンプリングし、backlogrunningpool_capacitymax_threads、およびrequests_countを含むRuby/Puma/*タイムスライスメトリクスとして報告するようになりました。統計は、シングルモード、およびpreload_app!が有効な場合はクラスタモードでサンプリングされます。この計装はデフォルトで無効になっています。有効にするには、disable_puma_instrumentationfalseに設定します。有効にすると、エージェントはこれらのメトリクスを配信するためにPumaマスタープロセスでレポートスレッドを開始し、Pumaワーカーと並行して追加のエージェント接続を実行します。サンプリング間隔は、新しいpuma.sample_rate設定(デフォルトは60秒)で設定可能です。Puma 6.6以降が必要です。詳細については、ドキュメントをご覧ください。PR#3578

  • 機能:Google Cloud Runインスタンスの一意のホスト名を報告する

    エージェントはCloud Runを検出し、個々のインスタンスを区別できるように、GCPインスタンスIDをホスト名として報告するようになりました。この変更前は、すべてのGoogle Cloud Runのホスト名はlocalhostでした。この機能は、新しいutilization.gcp_cloud_run.use_instance_as_host設定オプション(デフォルトはtrue)によって制御されます。ホスト名を代わりに{K_REVISION}-{instance id}として報告するには、utilization.gcp_cloud_run.include_revision_in_host(デフォルトはfalse)をtrueに設定します。ここで、K_REVISIONはCloud Runのリビジョン名です。Issue#3295 PR#3609

  • バグ修正: transaction_tracer.limit_segmentsの後にスローSQLが記録されなくなりました超過

    トランザクションがtransaction_tracer.limit_segmentsを超えた後でも、その後に作成されたデータストアセグメントで引き続きスローSQLが記録される可能性がありました。制限に達した後に作成されたセグメントについて、エージェントはスローSQLの記録を停止するようになりました。PR#3615

  • バグ修正:マルチデータベースのRailsアプリ(Rails>=7.2)で、実行計画が誤ったデータベースをターゲットにする可能性がありました。

    Rails 7.2+では、エージェントは専用の接続ではなく、アプリのデフォルト/共有プールからの接続を使用して実行計画を収集していました。これは主にマルチデータベースアプリに影響を与えました。実行計画が誤ったデータベースに対して生成される可能性があり、実行計画が失敗すると共有接続が不正な状態のままになり、無関係なrequestsに影響を与える可能性がありました。エージェントは、Rails 7.2以前と同様に、実行計画に独自の専用接続を使用するようになり、実行計画の試行が失敗するたびにその接続をリセットまたは破棄するため、不正な接続が再利用されることはありません。Issue#3610 PR#3612

  • バグ修正: ブラウザ監視の計装が以下で失敗しなくなりました FrozenError

    応答本文の最初のフラグメントがフリーズされたStringであり、複数のフラグメントが存在する場合、ブラウザの計装がFrozenErrorにヒットし、ブラウザのタイミングヘッダーが挿入されませんでした。これは、コンパイルされた文字列をより多くフリーズするようになったERB6.0.3+で発生し始めました。この問題は修正されました。Issue#3624 PR#3625

  • バグ修正:すべての文字種を許可するようにブール値の設定値を正規化

    バージョン9.xでは、エージェントは"FALSE"のような大文字のブール値や、"True"のような大文字と小文字が混在する値を受け入れていました。バージョン10.0.0にはPR#3341が含まれており、これにより大文字と小文字を区別しない要件が意図せず削除されていました。これにより、すべて小文字以外の文字種を使用していたユーザーは、設定オプションがデフォルトにフォールバックしていました。現在、エージェントは再び大文字と小文字を区別しないチェックを使用するようになりました。Issue#3632 PR#3633

June 25
Ruby agent v10.6.0

重要

最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。

エージェントのリリースとサポート日については、New Relic Ruby エージェントのEOL ポリシーを参照してください。

v10.6.0

  • 機能:HybridエージェントでSpanLinkイベントがサポートされるようになりました

    OpenTelemetry APIによって作成されたスパンに、スパンリンクを関連付けることができるようになりました。リンクは、スパンの開始時にlinks引数に渡すか、OpenTelemetry::Trace::Span#add_link APIを呼び出すことで追加できます。PR#3586

  • 機能:HybridエージェントでSpanEventイベントがサポートされるようになりました

    OpenTelemetry APIによって作成されたスパンに、OpenTelemetry::Trace::Span#add_eventAPIを介してSpanEventイベントを関連付けることができるようになりました。SpanEventイベントは、スパン上のタイムスタンプ付きアノテーションをキャプチャし、親スパンと一緒にNew Relicに送信されます。PR#3587

  • 機能:すべてのHybridエージェントスパンにスパンの種類を設定

    以前は、外部リクエストセグメントまたはデータストアセグメントに変換されたOpenTelemetryスパンのみが、スパンの種類を属性として追加していました。現在、エージェントは、値が利用可能なすべてのOpenTelemetryスパンにスパンの種類を追加します。PR#3589

  • 機能: OpenTelemetry::Tracer#start_root_spanのサポートを追加

    スパンの種類が:serverまたは:consumerである場合、OpenTelemetry::Tracer#start_root_spanAPIを使用して、指定されたスパンのトランザクションを強制的に開始できるようになりました。その他のスパンの種類については、何もしません。このメソッドは、バックグラウンドジョブの計装で最も一般的に使用されます。PR#3588

  • バグ修正:instrumentation.rails_event_logger: falseが計装を無効にしない問題を修正

    以前は、instrumentation.rails_event_loggerfalseに設定しても、期待どおりにRails.eventの計装が無効になりませんでした;Railsの起動中に引き続きインストールされていました。現在は修正されています。PR#3564

  • バグ修正:計装設定キーのブール値のような値をdisabledに正規化

    以前は、disabledのみがinstrumentation.*設定キーをオフにしていました。現在は、falseno、またはoffなどのブール値のような値もdisabledに解決され、計装がインストールされるのを防ぎます。PR#3579

  • バグ修正:ライブラリごとのロギングサポートアビリティメトリクスに、各ライブラリの計装状態が反映されるようになりました

    以前は、Supportability/Logging/Ruby/{library}/{enabled|disabled}メトリクスは各ライブラリの実際の状態ではなく、すべてのライブラリに対してグローバルなapplication_logging.enabled設定の値を報告していました。その結果、特定のライブラリのロギング計装を無効にしていた場合や、そのライブラリのgemをまったく使用していなかった場合でも、メトリクスはenabledを報告していました。現在、各ライブラリのメトリクスは、自身のロギング計装が有効になっているかどうかを反映しています。PR#3571

May 14
Ruby agent v10.5.0

重要

最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。

エージェントのリリースとサポート日については、New Relic Ruby エージェントのEOL ポリシーを参照してください。

v10.5.0

  • 機能:Dalli 5.0のサポートを追加し、メタプロトコルの計装を修正

    エージェントは、メタプロトコルのみを使用するためにDalli::Protocol::Binaryを削除したDalli 5.0+をサポートするようになりました。Dalli 3.2.0以降の場合、pipelined_getの計装は、Dalli::Protocol::BinaryではなくDalli::Protocol::Base(メソッドが定義されている場所)を正しくターゲットにするようになり、メタプロトコルを使用する際にget_multiの呼び出しが計装されないというギャップが修正されました。Dalli 5.0+では、エージェントは、Dalliの単一サーバーのget_multi最適化によって呼び出されるDalli::Protocol::Meta#read_multi_reqを追加でインストゥルメントします。PR#3541

  • 機能:active_record_use_table_name設定オプションを追加

    新しい設定オプションactive_record_use_table_nameは、メトリクス、スパン、およびトランザクショントレースセグメントの名前を付ける際に、Active Recordモデルのクラス名ではなくテーブル名を使用します。これは、単一テーブル継承を使用するアプリケーションでカーディナリティを削減するのに特に役立ちます。既存の動作を維持するため、このオプションはデフォルトでfalseになります。PR#3540

  • 機能:エージェントログ内のライセンスキーを部分的に秘匿化

    以前は、エージェントはエージェントログ内のNew Relicライセンスキーを完全に秘匿化していました。これで、最初の10文字が表示され、残りは*に置き換えられます。これにより、キーのシークレット部分を公開することなく、リージョン関連の問題をトラブルシューティングするのに十分な情報が保持されます。PR#3547

  • バグ修正:Semantic ロガー計装の非互換性を修正 rails_semantic_logger

    以前は、rails_semantic_loggerの使用中に例外がActionDispatch::DebugExceptionsに到達すると、ArgumentErrorが発生していました。これは修正されました。ご報告いただいた @jdelStrother に感謝します! PR#3548

April 16
Ruby agent v10.4.0

重要

We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date.

See the New Relic Ruby agent EOL policy for information about agent releases and support dates.

v10.4.0

  • Feature: Add Rails.event instrumentation for structured logging

    The agent now supports Rails.event as structured log events. When enabled, events published via Rails.event.notify are captured and forwarded to New Relic as log events. Event payloads, tags, context, timestamps, and source locations are automatically captured as log attributes.

    This instrumentation can be configured with the following options:

    • instrumentation.rails_event_logger - Controls whether Rails.event instrumentation is enabled. Defaults to use the value of application_logging.enabled.
    • instrumentation.rails_event_logger.event_names - An array of specific event names to capture. When empty (default), all Rails.event notifications are captured. Use this to filter events by name, for example: ['user.signup', 'payment.processed'].

    PR#3526

  • Feature: Add instrumentation for Rails Active Job Continuations

    The agent now instruments Rails Active Job Continuations, providing visibility into individual step execution within long-running jobs. Step names are included in segment metrics (e.g., Ruby/ActiveJob/default/MyJob/step/process_records) and step-specific attributes like cursor position, resumed status, and interrupted status are captured. A new configuration option, disable_active_job_step_names, allows users to exclude step names from metric names to reduce metric cardinality if needed (defaults to false). PR#3493

  • Feature: Add sidekiq.separate_transactions configuration option

    A new configuration option, sidekiq.separate_transactions, allows Sidekiq jobs executed during a web transaction to run in their own separate transaction. When enabled, this prevents Sidekiq job execution time from being included in web transaction metrics, providing more accurate performance data. The feature is opt-in (default: false) to maintain backward compatibility. This only affects jobs executed during active web transactions; jobs starting independently or nested within other background jobs are unaffected. Issue#3364 PR#3514

  • Bugfix: Update regexes that may have been vulnerable to ReDOS attacks

    Previously, the agent had a few regexes identified as possible targets for polynomial time complexity (ReDOS) attacks. Those regexes are now updated to address the concerns. PR#3520

  • Bugfix: Prevent crashes during HTTPX segment creation

    Previously, if start_external_request_segment encountered an error and returned nil, the agent would trigger a NoMethodError when attempting to add headers to the missing segment. We've added a guard check to ensure the instrumentation handles these cases gracefully.

    Bravo to @thebravoman for the report! Issue#3509 PR#3510

  • Bugfix: Make Transaction#finish idempotent

    Previously, if the Transaction#finish method was called multiple times, more than one transaction could be created for the same operation. Now, a mutex protects calls to Transaction#finish to make sure finish operations only run once. PR#3513

  • Bugfix: Log deprecation warning for Datastores.wrap API once

    Previously, this warning was being logged on every call to Datastores.wrap. Now, it will be logged only on the first call. In addition, the documentation has been updated to note the deprecated status of the second and third callback arguments. Issue#3516 PR#3519

April 9
Ruby agent v10.3.0

重要

最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。

エージェントのリリースとサポート日については、New Relic Ruby エージェントのEOL ポリシーを参照してください。

v10.3.0

  • 機能:SQLコメントによるデータベースクエリ命名機能を追加

    データベースクエリにSQLコメントを使用して明示的に名前を付けることができるようになりました。クエリには、追跡と識別を容易にするために安定した名前を割り当てるための/* NewRelicQueryName: CustomName */コメントを含めることができます。これは、パフォーマンス低下やインシデント発生時に特定のデータベースクエリを追跡する際に特に役立ちます。PR#3480

  • 機能: セマンティックロガー計装を追加

    エージェントは、 semantic_logger gem バージョン 4.6.0 以降のセマンティック ロガーログ転送と装飾をサポートするようになりました。 以前 Semantic ロガーの組み込みNew Relicアペンダーを使用していた場合は、重複ログの送信を避けるために、いずれかの方法を選択することをお勧めします。 New Relicのセマンティック ロガー計装は、 instrumentation.semantic_loggerdisabledに設定することで無効にできます。 PR#3467

    この計装を形作る上で貴重なフィードバックを提供してくれた@jdelStrotherに感謝します。

  • 機能: 新しい「ignored_middleware_classes」設定を追加

    新しい設定オプションignored_middleware_classes使用すると、ユーザーは特定のミドルウェアを計装から除外できます。 ラック::Cors)。デフォルトでは空の配列になります。問題番号1814 PR番号3481

  • 機能: 新しいNewRelic::Agent.add_transaction_log_attributes API を追加

    新しいAPI NewRelic::Agent.add_transaction_log_attributes使用すると、ユーザーは、現在の場所のログイベントに、瞬間スコープのカスタムアトリビュートを追加できます。 これらの属性は、現在のトランザクションの範囲内で作成されたログにのみ適用されます。PR#3472

  • バグ修正:ActionCableブロードキャストメトリクスのカーディナリティを削減するための設定オプションを提供

    デフォルトでは、Metrix for ActionCable ブロードキャスト メソッド呼び出しにはブロードキャストの値が含まれます。 この値は非常に高いカーディナリティを持つ可能性があります。 現在、 :simplify_action_cable_broadcast_metrics設定オプションにより、ユーザーはメトリクス名からブロードキャスト値を削除できるようになりました。 これにより、 Ruby/ActionCable/broadcastのようなメトリクスが作成されます。 この設定オプションを有効にすると、ブロードキャスト値がスパン属性として追加されます。PR#3463

  • バグ修正: FIPS/FedRAMP準拠のための不要な「digest/md5」要件を削除

    エージェントのバージョン7.1.0では、FIPS準拠のためMD5の使用がSHA1に置き換えられました(PR) 。しかし、以前の「digest/md5」の要件は削除されませんでした。FIPS/FedRAMP の支援に関する要件を削除しました。 この件を指摘してくださった@ashleyboehsさんに感謝いたします!Issue#3469 PR#3470

  • バグ修正: シャットダウン遅延を回避するため、 rails testの間にエージェントが起動しないようにする

    以前は、エージェントがrails testコマンドを実行すると、約3秒のシャットダウン遅延が発生していました。Railsのテスト実行中にエージェントが起動しないようにするため、定数Rails::Command::TestCommandがデフォルトのautostart.denylisted_constantsリストに追加されました。この件を指摘してくださった@varyformさんに感謝します。PR#3478

  • バグ修正: Falcon Web サーバーを使用する場合の「経過時間を計算できません」という警告を修正

    エージェントは、 Falconで実行するときにThread.current.object_idの代わりにFiber.current.object_id使用して状態を追跡するようになり、同じスレッドを共有する同時requestsによる衝突を防ぎます。 また、Falcon使用時に発生する「NameError: uninitilized constant Async::HTTP::VERSION 」というエラーも修正します。この件を指摘してくださった@97jazさん@gsarさんに感謝します。PR#3483

  • バグ修正: harvest.rb のタイプミスにより NoMethodError が発生する問題を修正しました。

    lib/new_relic/agent/agent_helpers/harvest.rbタイプミスによりNoMethodError: undefined method 'agent' for NewRelic:Moduleが発生しました。この問題を報告してくれた@oakbowに感謝します。PR#3484

  • バグ修正: 非推奨の ObjectSpace._id2ref の使用を削除

    エージェントは、非推奨のObjectSpace._id2refメソッドの代わりに別の方法を使用するようになり、Ruby 4.0 以降で実行する場合の非推奨警告が解消されます。PR#3490

  • バグ修正: ロギング計装の NoMethoError を修正

    以前は、Logging gem 計装がローカル ログを装飾しようとしたときに、文字列以外のオブジェクトに遭遇するとNoMethodErrorが発生していました。 この問題は修正されました。PR#3501

February 18
Ruby agent v10.2.0

重要

We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date.

See the New Relic Ruby agent EOL policy for information about agent releases and support dates.

v10.2.0

  • Feature: Introduce Hybrid Agent for OpenTelemetry Tracing Support

    OpenTelemetry Tracing APIs can now be translated into New Relic telemetry with the New Relic Ruby agent's new Hybrid Agent features. This allows the newrelic_rpm gem to behave similarly to an OpenTelemetry SDK, accepting OpenTelemetry API calls and turning them into New Relic Transactions and Segments with familiar attributes and names.

    The following configuration options relate to Hybrid Agent features:

    Configuration nameDefaultBehavior
    opentelemetry.enabledfalseA global configuration option for disabling all OpenTelemetry signals sent through New Relic.
    opentelemetry.traces.enabledtrueEnables the creation of Transaction Trace segments and timeslice metrics from OpenTelemetry Spans
    opentelemetry.traces.include''A comma-delimited list of OpenTelemetry Tracers, represented as a string (e.g. "AppTracer1,OpenTelemetry::Instrumentation::Bunny::Instrumentation"), that will have their trace signals sent to New Relic.
    opentelemetry.traces.exclude''A comma-delimited list of OpenTelemetry Tracers, represented as a string (e.g. "AppTracer1,OpenTelemetry::Instrumentation::Bunny::Instrumentation"), that will not have their trace signals sent to New Relic. All known tracers for instrumentation that conflicts with New Relic instrumentation are excluded by default.
  • Feature: Add configuration option error_collector.backtrace_truncate_location

    A new configuration option has been added, error_collector.backtrace_truncate_location, which allows the user to specify where in the backtrace to truncate when the number of frames exceeds error_collector.max_backtrace_frames. Options are 'top' (removes frames from the beginning), 'middle' (removes frames from the middle, preserving the beginning and end), or 'end' (removes frames from the end). The default is 'middle'. PR#3424

  • Feature: Add Logging gem instrumentation

    The agent will now record logs generated by the Logging gem. PR#3420

  • Feature: Add configuration option utilization.detect_in_parallel

    A new configuration option has been added, utilization.detect_in_parallel, which controls whether the agent uses threads when detecting cloud vendor information to speed up agent startup. When set to false, vendor detection runs sequentially without creating threads. The default is true. PR#3439

Copyright © 2026 New Relic株式会社。

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