Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure contrib directory #793

Merged
merged 4 commits into from
Aug 13, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger;

use OpenTelemetry\Contrib\Jaeger\AgentExporter;
use OpenTelemetry\SDK\Trace\SpanExporterInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Contrib\Unit;
namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger;

use OpenTelemetry\Contrib\Jaeger\IdConverter;
use PHPUnit\Framework\TestCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger;

use OpenTelemetry\Contrib\Jaeger\Exporter;
use OpenTelemetry\Tests\Unit\Contrib\AbstractHttpExporterTest;
use OpenTelemetry\Tests\Unit\Contrib\UsesHttpClientTrait;

/**
* @covers OpenTelemetry\Contrib\Jaeger\Exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger;

use OpenTelemetry\Contrib\Jaeger\HttpCollectorExporter;
use OpenTelemetry\SDK\Trace\SpanExporterInterface;
use OpenTelemetry\Tests\Unit\Contrib\UsesHttpClientTrait;
use OpenTelemetry\Tests\Unit\SDK\Util\SpanData;
use PHPUnit\Framework\TestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger;

use OpenTelemetry\Contrib\Jaeger\BatchAdapter\BatchAdapterFactoryInterface;
use OpenTelemetry\Contrib\Jaeger\BatchAdapter\BatchAdapterInterface;
use OpenTelemetry\Contrib\Jaeger\HttpSender;
use OpenTelemetry\Contrib\Jaeger\ParsedEndpointUrl;
use OpenTelemetry\SDK\Common\Attribute\Attributes;
use OpenTelemetry\SDK\Resource\ResourceInfo;
use OpenTelemetry\Tests\Unit\Contrib\UsesHttpClientTrait;
use OpenTelemetry\Tests\Unit\SDK\Util\SpanData;
use PHPUnit\Framework\TestCase;
use Thrift\Protocol\TProtocol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Contrib\Unit;
namespace OpenTelemetry\Tests\Unit\Contrib\Jaeger;

use OpenTelemetry\API\Trace\SpanContext;
use OpenTelemetry\API\Trace\SpanKind;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\Newrelic;

use OpenTelemetry\Contrib\Newrelic\Exporter;
use OpenTelemetry\Tests\Unit\Contrib\AbstractHttpExporterTest;

/**
* @covers OpenTelemetry\Contrib\Newrelic\Exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\Newrelic;

use OpenTelemetry\Contrib\Newrelic\SpanConverter;
use OpenTelemetry\SDK\Common\Attribute\Attributes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\Otlp;

use function bin2hex;
use OpenTelemetry\API\Trace\SpanContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\OtlpGrpc;

use AssertWell\PHPUnitGlobalState\EnvironmentVariables;
use Grpc\UnaryCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\OtlpHttp;

use AssertWell\PHPUnitGlobalState\EnvironmentVariables;
use GuzzleHttp\Client;
Expand All @@ -14,6 +14,7 @@
use OpenTelemetry\Contrib\OtlpHttp\Exporter;
use OpenTelemetry\SDK\Common\Environment\Variables as Env;
use OpenTelemetry\SDK\Trace\SpanExporterInterface;
use OpenTelemetry\Tests\Unit\Contrib\UsesHttpClientTrait;
use OpenTelemetry\Tests\Unit\SDK\Trace\SpanExporter\AbstractExporterTest;
use OpenTelemetry\Tests\Unit\SDK\Util\SpanData;
use Psr\Http\Client\ClientExceptionInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\Zipkin;

use OpenTelemetry\Contrib\Zipkin\Exporter;

use OpenTelemetry\Tests\Unit\Contrib\AbstractHttpExporterTest;

/**
* @covers OpenTelemetry\Contrib\Zipkin\Exporter
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\Zipkin;

use OpenTelemetry\API\Trace\SpanContext;
use OpenTelemetry\API\Trace\SpanKind;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\ZipkinToNewrelic;

use OpenTelemetry\Contrib\ZipkinToNewrelic\Exporter;

use OpenTelemetry\Tests\Unit\Contrib\AbstractHttpExporterTest;

/**
* @covers OpenTelemetry\Contrib\ZipkinToNewrelic\Exporter
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace OpenTelemetry\Tests\Unit\Contrib;
namespace OpenTelemetry\Tests\Unit\Contrib\ZipkinToNewrelic;

use function implode;
use OpenTelemetry\Contrib\ZipkinToNewrelic\SpanConverter;
Expand Down