lib/opentelemetry/sdk/resources/resource.rb in opentelemetry-sdk-0.13.0 vs lib/opentelemetry/sdk/resources/resource.rb in opentelemetry-sdk-0.13.1
- old
+ new
@@ -29,10 +29,10 @@
new(frozen_attributes)
end
def default
- @default ||= telemetry_sdk.merge(process).merge(create(Constants::SERVICE_RESOURCE[:name] => 'unknown_service'))
+ @default ||= create(Constants::SERVICE_RESOURCE[:name] => 'unknown_service').merge(process).merge(telemetry_sdk)
end
def telemetry_sdk
resource_attributes = {
Constants::TELEMETRY_SDK_RESOURCE[:name] => 'opentelemetry',