自動インストルメンテーション
opentelemetry-sdk および opentelemetry-instrumentation-all パッケージは、最小限の手作業でトレースやスパンを自動的に取り込みます。
サポートされているフレームワークのリストについては、サポートされているフレームワークを参照してください。
次の手順は、単純な Ruby On Rails アプリケーションをインストゥルメント化する例です。
Gain operational intelligence by collecting, indexing, and visualizing data using a powerful on-premises engine for actionable insights.
Release NotesCollect, index, and visualize your data in the cloud for better operational intelligence.
Release NotesDiscover, share, and install apps and add-ons with the Splunk community on Splunkbase. Publish your own or add others to your Splunk platform instance.
Gain operational intelligence by collecting, indexing, and visualizing data using a powerful on-premises engine for actionable insights.
Release NotesStreamline your security operations with a SOAR system that integrates orchestration, playbook automation, and case management to enhance threat response.
Release NotesPrevent disruptions and optimize operations when you monitor and analyze your IT service with predictive analytics and machine learning.
Release NotesCollect, index, and visualize your data in the cloud for better operational intelligence.
Release NotesGain end-to-end visibility, troubleshoot in real-time, and optimize performance across infrastructure, applications, and user interfaces.
Release NotesMonitor business application performance for cloud environments and IT infrastructure.
Release NotesMonitor business application performance for cloud environments and IT infrastructure.
Release NotesAn on-premises solution using AppDynamics On-Premises or Appdynamics Virtual Appliance (self hosted).
Release NotesBuild and deliver apps and integrations with SDKs, APIs and tools.
Access and share apps and add-ons with the Splunk community on Splunkbase. Publish your own apps, or download and install others on your Splunk platform instance.
Explore information on best practices, connect with community, or contact support.
opentelemetry-sdk および opentelemetry-instrumentation-all パッケージは、最小限の手作業でトレースやスパンを自動的に取り込みます。
サポートされているフレームワークのリストについては、サポートされているフレームワークを参照してください。
次の手順は、単純な Ruby On Rails アプリケーションをインストゥルメント化する例です。
Gemfile
gem 'opentelemetry-sdk'
gem 'opentelemetry-exporter-otlp'
gem 'opentelemetry-instrumentation-all'
<project>/config/initializers/opentelemetry.rbOpenTelemetry を初期化するように Ruby アプリケーションを設定します。
# config/initializers/opentelemetry.rb
require 'opentelemetry/sdk'
require 'opentelemetry/exporter/otlp'
require 'opentelemetry/instrumentation/all'
OpenTelemetry::SDK.configure do |c|
c.resource = OpenTelemetry::SDK::Resources::Resource.create({
OpenTelemetry::SemanticConventions::Resource::SERVICE_NAMESPACE => '<YOUR_SERVICE_NAMESPACE>', # corresponds to Appd controller Application name
OpenTelemetry::SemanticConventions::Resource::SERVICE_NAME => '<YOUR_SERVICE_NAME>' # corresponds to Appd controller Tier name
})
c.use_all() # enables all instrumentation!
end
OTEL_EXPORTER_OTLP_ENDPOINT 環境変数を設定して、アプリケーションが OpenTelemetry Collector にトレースを報告するように構成します。
export OTEL_EXPORTER_OTLP_ENDPOINT=http://0.0.0.0:4318
0.0.0.0 は OpenTelemetry Collector HOST であり、4318 は OpenTelemetry Collector PORT です。使用可能なエクスポータの詳細については、Ruby エクスポータを参照してください。
bundle install