diff --git a/src/Trace/Builder/Builder.php b/src/Trace/Builder/Builder.php index a84aa05..71538ac 100644 --- a/src/Trace/Builder/Builder.php +++ b/src/Trace/Builder/Builder.php @@ -239,10 +239,8 @@ public function withDefaultResource(bool $enableAutoDiscover = false): self ]) ); if ($enableAutoDiscover) { - $resourceInfo = ResourceInfoFactory::merge( - $resourceInfo, - ResourceInfoFactory::defaultResource(), - ); + $currentResource = ResourceInfoFactory::defaultResource(); + $resourceInfo = $currentResource->merge($resourceInfo); } return $this->withResourceInfo( diff --git a/src/Trace/Integration/Curl.php b/src/Trace/Integration/Curl.php index 111b1ae..070a525 100644 --- a/src/Trace/Integration/Curl.php +++ b/src/Trace/Integration/Curl.php @@ -70,7 +70,6 @@ public function getCurlOptName(int $option): string return match ($option) { CURLOPT_ADDRESS_SCOPE => 'CURLOPT_ADDRESS_SCOPE', CURLOPT_AUTOREFERER => 'CURLOPT_AUTOREFERER', - CURLOPT_BINARYTRANSFER => 'CURLOPT_BINARYTRANSFER', CURLOPT_BUFFERSIZE => 'CURLOPT_BUFFERSIZE', CURLOPT_CERTINFO => 'CURLOPT_CERTINFO', CURLOPT_CONNECTTIMEOUT => 'CURLOPT_CONNECTTIMEOUT',