lib/elastic_apm/transport/user_agent.rb in elastic-apm-3.10.1 vs lib/elastic_apm/transport/user_agent.rb in elastic-apm-3.11.0
- old
+ new
@@ -30,17 +30,17 @@
end
private
def build(config)
- metadata = Metadata.new(config)
+ service = Metadata::ServiceInfo.new(config)
[
"elastic-apm-ruby/#{VERSION}",
HTTP::Request::USER_AGENT,
[
- metadata.service.runtime.name,
- metadata.service.runtime.version
+ service.runtime.name,
+ service.runtime.version
].join('/')
].join(' ')
end
end
end