mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Add OTel HttpClient Instrumentation
This will be useful for the GCE provider.
This commit is contained in:
parent
6d6da30696
commit
72c82cf084
4 changed files with 13 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ module Vmpooler
|
|||
|
||||
# Dependencies for tracing
|
||||
require 'opentelemetry-instrumentation-concurrent_ruby'
|
||||
require 'opentelemetry-instrumentation-http_client'
|
||||
require 'opentelemetry-instrumentation-redis'
|
||||
require 'opentelemetry-instrumentation-sinatra'
|
||||
require 'opentelemetry-sdk'
|
||||
|
|
@ -265,6 +266,7 @@ module Vmpooler
|
|||
OpenTelemetry::SDK.configure do |c|
|
||||
c.use 'OpenTelemetry::Instrumentation::Sinatra'
|
||||
c.use 'OpenTelemetry::Instrumentation::ConcurrentRuby'
|
||||
c.use 'OpenTelemetry::Instrumentation::HttpClient'
|
||||
c.use 'OpenTelemetry::Instrumentation::Redis'
|
||||
|
||||
c.add_span_processor(span_processor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue