remove blank lines after class opening (#1468)
add the php-cs-fixer no_blank_lines_after_class_opening rule and apply to codebase
This commit is contained in:
parent
b515b6b6ff
commit
7aa3e02eb0
|
|
@ -29,6 +29,7 @@ return $config->setRules([
|
|||
'include' => true,
|
||||
'lowercase_cast' => true,
|
||||
'new_with_parentheses' => true,
|
||||
'no_blank_lines_after_class_opening' => true,
|
||||
'no_extra_blank_lines' => true,
|
||||
'no_leading_import_slash' => true,
|
||||
'no_trailing_whitespace' => true,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\Example;
|
|||
|
||||
final class Example
|
||||
{
|
||||
|
||||
public function test(): int
|
||||
{
|
||||
return 42;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use OpenTelemetry\API\Instrumentation\AutoInstrumentation\InstrumentationConfigu
|
|||
|
||||
final class ExampleConfig implements InstrumentationConfiguration
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
public readonly string $spanName,
|
||||
public readonly bool $enabled = true,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class ExampleConfigProvider implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @psalm-suppress MoreSpecificImplementedParamType
|
||||
* @param array{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use OpenTelemetry\Context\Context;
|
|||
|
||||
final class ExampleInstrumentation implements Instrumentation
|
||||
{
|
||||
|
||||
public function register(HookManagerInterface $hookManager, ConfigProperties $configuration, InstrumentationContext $context): void
|
||||
{
|
||||
$config = $configuration->get(ExampleConfig::class) ?? throw new Exception('example instrumentation must be configured');
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use OpenTelemetry\API\Configuration\ConfigProperties;
|
|||
|
||||
final class ConfigurationRegistry implements ConfigProperties
|
||||
{
|
||||
|
||||
private array $configurations = [];
|
||||
|
||||
public function add(InstrumentationConfiguration $configuration): self
|
||||
|
|
|
|||
|
|
@ -6,5 +6,4 @@ namespace OpenTelemetry\API\Instrumentation\AutoInstrumentation;
|
|||
|
||||
interface InstrumentationConfiguration
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use OpenTelemetry\Context\ContextInterface;
|
|||
|
||||
interface CounterInterface extends SynchronousInstrument
|
||||
{
|
||||
|
||||
/**
|
||||
* @param float|int $amount non-negative amount to increment by
|
||||
* @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ use OpenTelemetry\Context\ContextInterface;
|
|||
*/
|
||||
interface GaugeInterface extends SynchronousInstrument
|
||||
{
|
||||
|
||||
/**
|
||||
* @param float|int $amount current absolute value
|
||||
* @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use OpenTelemetry\Context\ContextInterface;
|
|||
|
||||
interface HistogramInterface extends SynchronousInstrument
|
||||
{
|
||||
|
||||
/**
|
||||
* @param float|int $amount non-negative amount to record
|
||||
* @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\API\Metrics;
|
|||
|
||||
interface MeterInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Reports measurements for multiple asynchronous instrument from a single callback.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\API\Metrics;
|
|||
|
||||
interface MeterProviderInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns a `Meter` for the given instrumentation scope.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ namespace OpenTelemetry\API\Metrics;
|
|||
*/
|
||||
interface ObservableCallbackInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Detaches the associated callback from the instrument.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\API\Metrics;
|
|||
|
||||
interface ObservableCounterInterface extends AsynchronousInstrument
|
||||
{
|
||||
|
||||
/**
|
||||
* @param callable(ObserverInterface): void $callback function responsible for
|
||||
* reporting the measurements (as absolute values)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\API\Metrics;
|
|||
|
||||
interface ObservableGaugeInterface extends AsynchronousInstrument
|
||||
{
|
||||
|
||||
/**
|
||||
* @param callable(ObserverInterface): void $callback function responsible for
|
||||
* reporting the measurements
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\API\Metrics;
|
|||
|
||||
interface ObservableUpDownCounterInterface extends AsynchronousInstrument
|
||||
{
|
||||
|
||||
/**
|
||||
* @param callable(ObserverInterface): void $callback function responsible for
|
||||
* reporting the measurements (as absolute values)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\API\Metrics;
|
|||
|
||||
interface ObserverInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* Records the given absolute datapoint.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use OpenTelemetry\Context\ContextInterface;
|
|||
|
||||
interface UpDownCounterInterface extends SynchronousInstrument
|
||||
{
|
||||
|
||||
/**
|
||||
* @param float|int $amount amount to increment / decrement by
|
||||
* @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
class HttpConfigProvider implements ComponentProvider
|
||||
{
|
||||
|
||||
public function createPlugin(array $properties, Context $context): GeneralInstrumentationConfiguration
|
||||
{
|
||||
return new HttpConfig($properties);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class LogRecordExporterConsole implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
#[PackageDependency('open-telemetry/exporter-otlp', '^1.0.5')]
|
||||
final class LogRecordExporterOtlp implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* protocol: 'http/protobuf'|'http/json'|'grpc',
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class LogRecordProcessorBatch implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* schedule_delay: int<0, max>,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class LogRecordProcessorSimple implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* exporter: ComponentPlugin<LogRecordExporterInterface>,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class AggregationResolverDefault implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class MetricExporterConsole implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
#[PackageDependency('open-telemetry/exporter-otlp', '^1.0.5')]
|
||||
final class MetricExporterOtlp implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* protocol: 'http/protobuf'|'http/json'|'grpc',
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class MetricReaderPeriodic implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* interval: int<0, max>,
|
||||
|
|
|
|||
|
|
@ -50,7 +50,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class OpenTelemetrySdk implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* file_format: '0.3',
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
#[PackageDependency('open-telemetry/extension-propagator-b3', '^1.0.1')]
|
||||
final class TextMapPropagatorB3 implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
#[PackageDependency('open-telemetry/extension-propagator-b3', '^1.0.1')]
|
||||
final class TextMapPropagatorB3Multi implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class TextMapPropagatorBaggage implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class TextMapPropagatorComposite implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param list<ComponentPlugin<TextMapPropagatorInterface>> $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
#[PackageDependency('open-telemetry/extension-propagator-jaeger', '^0.0.2')]
|
||||
final class TextMapPropagatorJaeger implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class TextMapPropagatorTraceContext implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class SamplerAlwaysOff implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class SamplerAlwaysOn implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class SamplerParentBased implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* root: ComponentPlugin<SamplerInterface>,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class SamplerTraceIdRatioBased implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* ratio: float,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class SpanExporterConsole implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
#[PackageDependency('open-telemetry/exporter-otlp', '^1.0.5')]
|
||||
final class SpanExporterOtlp implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* protocol: 'http/protobuf'|'http/json'|'grpc',
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
#[PackageDependency('open-telemetry/exporter-zipkin', '^1.0')]
|
||||
final class SpanExporterZipkin implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* endpoint: string,
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class SpanProcessorBatch implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* schedule_delay: int<0, max>,
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
final class SpanProcessorSimple implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* exporter: ComponentPlugin<SpanExporterInterface>,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ use OpenTelemetry\SDK\SdkBuilder;
|
|||
|
||||
final class Configuration
|
||||
{
|
||||
|
||||
/**
|
||||
* @param ComponentPlugin<SdkBuilder> $sdkPlugin
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ namespace OpenTelemetry\Config\SDK\Configuration;
|
|||
*/
|
||||
interface ComponentPlugin
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates the component that is provided by this plugin.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
*/
|
||||
interface ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array $properties properties provided for this component provider
|
||||
* @param Context $context context that should be used to resolve component plugins
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use Symfony\Component\Config\Definition\Builder\NodeDefinition;
|
|||
*/
|
||||
interface ComponentProviderRegistry
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates a node to specify a component plugin.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ use function var_export;
|
|||
*/
|
||||
final class ConfigurationFactory
|
||||
{
|
||||
|
||||
private readonly CompiledConfigurationFactory $compiledFactory;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Psr\Log\NullLogger;
|
|||
*/
|
||||
final class Context
|
||||
{
|
||||
|
||||
/**
|
||||
* @param TracerProviderInterface $tracerProvider tracer provider to use for self diagnostics
|
||||
* @param MeterProviderInterface $meterProvider meter provider to use for self diagnostics
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\Config\SDK\Configuration\Environment;
|
|||
|
||||
final class ArrayEnvSource implements EnvSource
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
private readonly array $env,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,5 @@ namespace OpenTelemetry\Config\SDK\Configuration\Environment;
|
|||
|
||||
interface EnvReader
|
||||
{
|
||||
|
||||
public function read(string $name): ?string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use Symfony\Component\Config\Resource\ResourceInterface;
|
|||
|
||||
class EnvResource implements ResourceInterface
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
public readonly string $name,
|
||||
public readonly ?string $value,
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use Symfony\Component\Config\ResourceCheckerInterface;
|
|||
|
||||
final class EnvResourceChecker implements ResourceCheckerInterface
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
private readonly EnvReader $envReader,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,5 @@ namespace OpenTelemetry\Config\SDK\Configuration\Environment;
|
|||
|
||||
interface EnvSource
|
||||
{
|
||||
|
||||
public function readRaw(string $name): mixed;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ use function trim;
|
|||
|
||||
final class EnvSourceReader implements EnvReader
|
||||
{
|
||||
|
||||
/**
|
||||
* @param iterable<EnvSource> $envSources
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use function get_cfg_var;
|
|||
|
||||
final class PhpIniEnvSource implements EnvSource
|
||||
{
|
||||
|
||||
public function readRaw(string $name): string|array|false
|
||||
{
|
||||
return get_cfg_var($name);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\Config\SDK\Configuration\Environment;
|
|||
|
||||
final class ServerEnvSource implements EnvSource
|
||||
{
|
||||
|
||||
public function readRaw(string $name): mixed
|
||||
{
|
||||
return $_SERVER[$name] ?? null;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use Symfony\Component\Config\Definition\ArrayNode;
|
|||
*/
|
||||
final class ArrayNodeDefaultNull extends ArrayNode
|
||||
{
|
||||
|
||||
public static function fromNode(ArrayNode $node): ArrayNodeDefaultNull
|
||||
{
|
||||
$defaultNull = new ArrayNodeDefaultNull($node->getName());
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use Symfony\Component\Config\Definition\NodeInterface;
|
|||
*/
|
||||
final class ArrayNodeDefaultNullDefinition extends ArrayNodeDefinition
|
||||
{
|
||||
|
||||
protected function createNode(): NodeInterface
|
||||
{
|
||||
$node = parent::createNode();
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ use Symfony\Component\Config\Definition\Processor;
|
|||
*/
|
||||
final class CompiledConfigurationFactory
|
||||
{
|
||||
|
||||
/**
|
||||
* @param ComponentProvider<T> $rootComponent
|
||||
* @param NodeInterface $node
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ use OpenTelemetry\Config\SDK\Configuration\Context;
|
|||
*/
|
||||
final class ComponentPlugin implements \OpenTelemetry\Config\SDK\Configuration\ComponentPlugin
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array $properties resolved properties according to component provider config
|
||||
* @param ComponentProvider<T> $provider component provider used to create the component
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
|
|||
*/
|
||||
final class ComponentProviderRegistry implements \OpenTelemetry\Config\SDK\Configuration\ComponentProviderRegistry, ResourceTrackable
|
||||
{
|
||||
|
||||
/** @var array<string, array<string, ComponentProvider>> */
|
||||
private array $providers = [];
|
||||
/** @var array<string, array<string, true>> */
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
|
|||
*/
|
||||
final class ComposerPackageResource implements SelfCheckingResourceInterface
|
||||
{
|
||||
|
||||
public readonly string $packageName;
|
||||
public readonly string|false $version;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use Symfony\Component\Config\Resource\ResourceInterface;
|
|||
*/
|
||||
final class ConfigurationLoader implements \OpenTelemetry\Config\SDK\Configuration\Loader\ConfigurationLoader
|
||||
{
|
||||
|
||||
private array $configurations = [];
|
||||
private readonly ?ResourceCollection $resources;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ use Symfony\Component\Config\Definition\Builder\VariableNodeDefinition;
|
|||
*/
|
||||
final class EnvSubstitutionNormalization
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
private readonly EnvReader $envReader,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use Symfony\Component\Config\Resource\ResourceInterface;
|
|||
*/
|
||||
final class ResourceCollection implements \OpenTelemetry\Config\SDK\Configuration\ResourceCollection
|
||||
{
|
||||
|
||||
/** @var array<ResourceInterface> */
|
||||
private array $resources = [];
|
||||
private readonly ComposerResource $composerResource;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,5 @@ use OpenTelemetry\Config\SDK\Configuration\ResourceCollection;
|
|||
|
||||
interface ResourceTrackable
|
||||
{
|
||||
|
||||
public function trackResources(?ResourceCollection $resources): void;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use OpenTelemetry\Config\SDK\Configuration\ResourceCollection;
|
|||
*/
|
||||
final class TrackingEnvReader implements EnvReader, ResourceTrackable
|
||||
{
|
||||
|
||||
private readonly EnvReader $envReader;
|
||||
private ?ResourceCollection $resources = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ParentNodeDefinitionInterface;
|
|||
*/
|
||||
final class TreatNullAsUnsetNormalization
|
||||
{
|
||||
|
||||
public function apply(ArrayNodeDefinition $root): void
|
||||
{
|
||||
foreach ($root->getChildNodeDefinitions() as $childNode) {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ use Symfony\Component\Config\Resource\ResourceInterface;
|
|||
|
||||
interface ConfigurationLoader
|
||||
{
|
||||
|
||||
public function loadConfiguration(mixed $configuration): void;
|
||||
|
||||
public function addResource(ResourceInterface $resource): void;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ use Symfony\Component\Config\Resource\FileResource;
|
|||
|
||||
final class YamlExtensionFileLoader extends FileLoader
|
||||
{
|
||||
|
||||
public function __construct(private readonly ConfigurationLoader $configuration, FileLocatorInterface $locator, ?string $env = null)
|
||||
{
|
||||
parent::__construct($locator, $env);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ use Symfony\Component\Yaml\Yaml;
|
|||
|
||||
final class YamlSymfonyFileLoader extends FileLoader
|
||||
{
|
||||
|
||||
public function __construct(private readonly ConfigurationLoader $configuration, FileLocatorInterface $locator, ?string $env = null)
|
||||
{
|
||||
parent::__construct($locator, $env);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ use Symfony\Component\Config\Resource\ResourceInterface;
|
|||
|
||||
interface ResourceCollection
|
||||
{
|
||||
|
||||
/**
|
||||
* @param object|class-string $class
|
||||
*
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@ use Symfony\Component\Config\Definition\Builder\NodeDefinition;
|
|||
*/
|
||||
final class Validation
|
||||
{
|
||||
|
||||
public static function ensureString(): Closure
|
||||
{
|
||||
return static function (mixed $value): ?string {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ use OpenTelemetry\Config\SDK\Configuration\Environment\ServerEnvSource;
|
|||
|
||||
final class Instrumentation
|
||||
{
|
||||
|
||||
/**
|
||||
* @param ComponentPlugin<ConfigurationRegistry> $plugin
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ namespace OpenTelemetry\Extension\Propagator\CloudTrace;
|
|||
*/
|
||||
final class Utils
|
||||
{
|
||||
|
||||
/**
|
||||
* Pads the string with zero string characters on left hand side, to max total string size.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use OpenTelemetry\SDK\Common\Instrumentation\InstrumentationScopeInterface;
|
|||
*/
|
||||
final class ConfiguratorClosure
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
public readonly Closure $closure,
|
||||
private readonly ?string $name,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace OpenTelemetry\SDK\Metrics\Data;
|
|||
|
||||
final class Gauge implements DataInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* @param iterable<NumberDataPoint> $dataPoints
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,6 +13,5 @@ use OpenTelemetry\SDK\Metrics\MetricRegistry\MetricCollectorInterface;
|
|||
*/
|
||||
interface MetricSourceRegistryUnregisterInterface
|
||||
{
|
||||
|
||||
public function unregisterStream(MetricCollectorInterface $collector, int $streamId): void;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ use OpenTelemetry\Context\Propagation\TextMapPropagatorInterface;
|
|||
*/
|
||||
final class LateBindingTextMapPropagator implements TextMapPropagatorInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* @param TextMapPropagatorInterface|Closure(): TextMapPropagatorInterface $propagator
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -12,7 +12,6 @@ use PHPUnit\Framework\TestCase;
|
|||
#[CoversNothing]
|
||||
final class ConfigurationTest extends TestCase
|
||||
{
|
||||
|
||||
#[DataProvider('openTelemetryConfigurationDataProvider')]
|
||||
public function test_open_telemetry_configuration(string $file): void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ final class ConfigurationFactoryTest extends TestCase
|
|||
$factory = new ConfigurationFactory(
|
||||
[],
|
||||
new class() implements \OpenTelemetry\Config\SDK\Configuration\ComponentProvider {
|
||||
|
||||
public function createPlugin(array $properties, Context $context): mixed
|
||||
{
|
||||
throw new BadMethodCallException();
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class LogRecordExporterConsole implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class LogRecordExporterOtlp implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* protocol: 'http/protobuf'|'http/json'|'grpc/protobuf'|'grpc/json',
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class LogRecordProcessorBatch implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* schedule_delay: int<0, max>,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class LogRecordProcessorSimple implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* exporter: ComponentPlugin<LogRecordExporter>,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class AggregationResolverDefault implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class AggregationResolverDrop implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class AggregationResolverExplicitBucketHistogram implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* boundaries: list<float|int>,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class AggregationResolverLastValue implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class AggregationResolverSum implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class MetricExporterConsole implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class MetricExporterOtlp implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* protocol: 'http/protobuf'|'http/json'|'grpc/protobuf'|'grpc/json',
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class MetricExporterPrometheus implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* host: string,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class MetricReaderPeriodic implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* interval: int<0, max>,
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class MetricReaderPull implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* exporter: ComponentPlugin<MetricExporter>,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class OpenTelemetryConfiguration implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{
|
||||
* file_format: '0.1',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class TextMapPropagatorB3 implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class TextMapPropagatorB3Multi implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
|
|||
|
||||
final class TextMapPropagatorBaggage implements ComponentProvider
|
||||
{
|
||||
|
||||
/**
|
||||
* @param array{} $properties
|
||||
*/
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue