Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ResourceDetectors/Azure/_register.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

use OpenTelemetry\SDK\Registry;

Registry::registerResourceDetector('azure_app_service', new OpenTelemetry\Azure\AppService\Detector());
Registry::registerResourceDetector('azure_container_apps', new OpenTelemetry\Azure\ContainerApps\Detector());
Registry::registerResourceDetector('azure_vm', new OpenTelemetry\Azure\Vm\Detector());
Registry::registerResourceDetector('azure_app_service', new OpenTelemetry\Contrib\Resource\Detector\Azure\AppService\Detector());
Registry::registerResourceDetector('azure_container_apps', new OpenTelemetry\Contrib\Resource\Detector\Azure\ContainerApps\Detector());
Registry::registerResourceDetector('azure_vm', new OpenTelemetry\Contrib\Resource\Detector\Azure\Vm\Detector());
4 changes: 2 additions & 2 deletions src/ResourceDetectors/Azure/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
},
"autoload": {
"psr-4": {
"OpenTelemetry\\Azure\\": "src/"
"OpenTelemetry\\Contrib\\Resource\\Detector\\Azure\\": "src/"
},
"files": [
"_register.php"
]
},
"autoload-dev": {
"psr-4": {
"OpenTelemetry\\Tests\\Azure\\": "tests/"
"OpenTelemetry\\Tests\\Resource\\Detector\\Azure\\": "tests/"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion src/ResourceDetectors/Azure/src/AppService/Detector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
*/

namespace OpenTelemetry\Azure\AppService;
namespace OpenTelemetry\Contrib\Resource\Detector\Azure\AppService;

use OpenTelemetry\SDK\Common\Attribute\Attributes;
use OpenTelemetry\SDK\Resource\ResourceDetectorInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
*/

namespace OpenTelemetry\Azure\ContainerApps;
namespace OpenTelemetry\Contrib\Resource\Detector\Azure\ContainerApps;

use OpenTelemetry\SDK\Common\Attribute\Attributes;
use OpenTelemetry\SDK\Resource\ResourceDetectorInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/ResourceDetectors/Azure/src/Vm/Detector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* limitations under the License.
*/

namespace OpenTelemetry\Azure\Vm;
namespace OpenTelemetry\Contrib\Resource\Detector\Azure\Vm;

use Http\Discovery\Psr17FactoryDiscovery;
use Http\Discovery\Psr18ClientDiscovery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Azure\Unit\AppService;
namespace OpenTelemetry\Tests\Resource\Detector\Azure\Unit\AppService;

use AssertWell\PHPUnitGlobalState\EnvironmentVariables;
use OpenTelemetry\Azure\AppService\Detector;
use OpenTelemetry\Contrib\Resource\Detector\Azure\AppService\Detector;
use OpenTelemetry\SDK\Common\Attribute\Attributes;
use OpenTelemetry\SemConv\ResourceAttributes;
use PHPUnit\Framework\TestCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Azure\Unit\ContainerApps;
namespace OpenTelemetry\Tests\Resource\Detector\Azure\Unit\ContainerApps;

use AssertWell\PHPUnitGlobalState\EnvironmentVariables;
use OpenTelemetry\Azure\ContainerApps\Detector;
use OpenTelemetry\Contrib\Resource\Detector\Azure\ContainerApps\Detector;
use OpenTelemetry\SDK\Common\Attribute\Attributes;
use OpenTelemetry\SemConv\ResourceAttributes;
use PHPUnit\Framework\TestCase;
Expand Down
4 changes: 2 additions & 2 deletions src/ResourceDetectors/Azure/tests/Unit/Vm/DetectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Azure\Unit\Vm;
namespace OpenTelemetry\Tests\Resource\Detector\Azure\Unit\Vm;

use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\HttpFactory;
use GuzzleHttp\Psr7\Response;
use OpenTelemetry\Azure\Vm\Detector;
use OpenTelemetry\Contrib\Resource\Detector\Azure\Vm\Detector;
use OpenTelemetry\SDK\Common\Attribute\Attributes;
use OpenTelemetry\SemConv\ResourceAttributes;
use PHPUnit\Framework\TestCase;
Expand Down
Loading