lib/httpx/adapters/datadog.rb in httpx-1.2.2 vs lib/httpx/adapters/datadog.rb in httpx-1.2.3
- old
+ new
@@ -167,17 +167,17 @@
Datadog::Tracing::Contrib::SpanAttributeSchema.fetch_service_name(
"DD_TRACE_HTTPX_SERVICE_NAME",
"httpx"
)
end
- o.lazy
+ o.lazy unless Gem::Version.new(DDTrace::VERSION::STRING) >= Gem::Version.new("1.13.0")
end
else
option :service_name do |o|
o.default do
ENV.fetch("DD_TRACE_HTTPX_SERVICE_NAME", "httpx")
end
- o.lazy
+ o.lazy unless Gem::Version.new(DDTrace::VERSION::STRING) >= Gem::Version.new("1.13.0")
end
end
option :distributed_tracing, default: true