ruby --version
gem 'opentelemetry-sdk' gem 'opentelemetry-exporter-otlp' gem 'opentelemetry-instrumentation-all' gem 'pyroscope' gem 'middleware_apm', '~> 1.0.0'
require 'middleware/ruby_gem' Middleware::RubyGem.init
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:9320 \ OTEL_SERVICE_NAME="<Your Service Name>" \ OTEL_RESOURCE_ATTRIBUTES=project.name="<Your Project Name>" \ MW_API_KEY=<Your API Key> \ <YOUR COMMAND>
Was this page helpful?