Skip to content

Commit

Permalink
Merge pull request #416 from puppetlabs/otel-070
Browse files Browse the repository at this point in the history
Update to OTel 0.7.0
  • Loading branch information
genebean authored Oct 8, 2020
2 parents 4e7e16e + f5698d4 commit 635181c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
9 changes: 3 additions & 6 deletions lib/vmpooler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,10 @@ def self.configure_tracing(startup_args, prefix, tracing_enabled, tracing_jaeger

c.add_span_processor(span_processor)

c.service_name = service_name
c.service_version = version

c.resource = OpenTelemetry::Resource::Detectors::AutoDetector.detect
c.resource = OpenTelemetry::SDK::Resources::Resource.create(
{
OpenTelemetry::SDK::Resources::Constants::SERVICE_RESOURCE[:name] => service_name,
OpenTelemetry::SDK::Resources::Constants::SERVICE_RESOURCE[:version] => version
}
)
end
end
end
14 changes: 7 additions & 7 deletions vmpooler.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Gem::Specification.new do |s|
s.add_dependency 'connection_pool', '~> 2.2'
s.add_dependency 'net-ldap', '~> 0.16'
s.add_dependency 'nokogiri', '~> 1.10'
s.add_dependency 'opentelemetry-api', '~> 0.6.0'
s.add_dependency 'opentelemetry-exporter-jaeger', '~> 0.6.0'
s.add_dependency 'opentelemetry-instrumentation-concurrent_ruby', '~> 0.6.0'
s.add_dependency 'opentelemetry-instrumentation-redis', '~> 0.6.0'
s.add_dependency 'opentelemetry-instrumentation-sinatra', '~> 0.6.0'
s.add_dependency 'opentelemetry-resource_detectors', '~> 0.6.0'
s.add_dependency 'opentelemetry-sdk', '~> 0.6.0'
s.add_dependency 'opentelemetry-api', '~> 0.7.0'
s.add_dependency 'opentelemetry-exporter-jaeger', '~> 0.7.0'
s.add_dependency 'opentelemetry-instrumentation-concurrent_ruby', '~> 0.7.0'
s.add_dependency 'opentelemetry-instrumentation-redis', '~> 0.7.0'
s.add_dependency 'opentelemetry-instrumentation-sinatra', '~> 0.7.0'
s.add_dependency 'opentelemetry-resource_detectors', '~> 0.7.0'
s.add_dependency 'opentelemetry-sdk', '~> 0.7.0'
s.add_dependency 'pickup', '~> 0.0.11'
s.add_dependency 'prometheus-client', '~> 2.0'
s.add_dependency 'puma', '~> 4.3'
Expand Down

0 comments on commit 635181c

Please sign in to comment.