Update to OTel 0.7.0

This update includes two key benefits:

1. Spans will be named based on their route instead of the full path
   info thanks to https://github.com/open-telemetry/opentelemetry-ruby/pull/415
2. Helper methods were added to the configurator to simplify setting
   service.name and service.version
This commit is contained in:
Gene Liverman 2020-10-08 09:49:45 -04:00
parent 4e7e16e001
commit f5698d49fc
No known key found for this signature in database
GPG key ID: 3AF83985B6C857C6
2 changed files with 10 additions and 13 deletions

View file

@ -257,13 +257,10 @@ module Vmpooler
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