diff --git a/examples/disabling_sdk.php b/examples/disabling_sdk.php index 7c904126b..ae5ec5f1e 100644 --- a/examples/disabling_sdk.php +++ b/examples/disabling_sdk.php @@ -19,7 +19,7 @@ require __DIR__ . '/../vendor/autoload.php'; -//@see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#general-sdk-configuration +//@see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration putenv('OTEL_SDK_DISABLED=true'); echo 'Creating (disabled) signals' . PHP_EOL; diff --git a/examples/traces/features/configuration_from_environment.php b/examples/traces/features/configuration_from_environment.php index 34dcf80f2..10db8819f 100644 --- a/examples/traces/features/configuration_from_environment.php +++ b/examples/traces/features/configuration_from_environment.php @@ -8,7 +8,7 @@ use OpenTelemetry\SDK\Trace\TracerProviderFactory; -//@see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md +//@see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md putenv('OTEL_RESOURCE_ATTRIBUTES=service.version=1.0.0'); putenv('OTEL_SERVICE_NAME=example-app'); putenv('OTEL_LOG_LEVEL=warning'); diff --git a/examples/traces/features/span_resources.php b/examples/traces/features/span_resources.php index 025b0702b..dfa0ed15c 100644 --- a/examples/traces/features/span_resources.php +++ b/examples/traces/features/span_resources.php @@ -17,7 +17,7 @@ echo 'Starting ConsoleSpanExporter' . PHP_EOL; $resource = ResourceInfoFactory::defaultResource()->merge(ResourceInfo::create(Attributes::create([ - //@see https://github.com/open-telemetry/opentelemetry-specification/tree/main/specification/resource/semantic_conventions + //@see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/semantic-conventions.md ResourceAttributes::SERVICE_NAMESPACE => 'foo', ResourceAttributes::SERVICE_NAME => 'bar', ResourceAttributes::SERVICE_INSTANCE_ID => 1, diff --git a/src/Contrib/Otlp/MetricExporter.php b/src/Contrib/Otlp/MetricExporter.php index 93ec5c48e..efd149c7f 100644 --- a/src/Contrib/Otlp/MetricExporter.php +++ b/src/Contrib/Otlp/MetricExporter.php @@ -16,7 +16,7 @@ /** * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/stdout.md#opentelemetry-metrics-exporter---standard-output - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/experimental/serialization/json.md#json-file-serialization + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/file-exporter.md#json-file-serialization * @psalm-import-type SUPPORTED_CONTENT_TYPES from ProtobufSerializer */ final class MetricExporter implements PushMetricExporterInterface, AggregationTemporalitySelectorInterface diff --git a/src/SDK/Common/Configuration/Defaults.php b/src/SDK/Common/Configuration/Defaults.php index 635e1f066..7228270a6 100644 --- a/src/SDK/Common/Configuration/Defaults.php +++ b/src/SDK/Common/Configuration/Defaults.php @@ -6,13 +6,13 @@ /** * Default values for environment variables defined by the OpenTelemetry specification and language specific variables for the PHP SDK. - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md */ interface Defaults { /** * General SDK Configuration - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#general-sdk-configuration + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration */ public const OTEL_LOG_LEVEL = 'info'; public const OTEL_PROPAGATORS = 'tracecontext,baggage'; @@ -20,7 +20,7 @@ interface Defaults public const OTEL_SDK_DISABLED = 'false'; /** * Batch Span Processor - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#batch-span-processor + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#batch-span-processor */ public const OTEL_BSP_SCHEDULE_DELAY = 5000; public const OTEL_BSP_EXPORT_TIMEOUT = 30000; @@ -28,6 +28,7 @@ interface Defaults public const OTEL_BSP_MAX_EXPORT_BATCH_SIZE = 512; /** * Batch LogRecord Processor + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#batch-logrecord-processor */ public const OTEL_BLRP_SCHEDULE_DELAY = 1000; public const OTEL_BLRP_EXPORT_TIMEOUT = 30000; @@ -35,13 +36,13 @@ interface Defaults public const OTEL_BLRP_MAX_EXPORT_BATCH_SIZE = 512; /** * Attribute Limits - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#attribute-limits + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#attribute-limits */ public const OTEL_ATTRIBUTE_COUNT_LIMIT = 128; public const OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT = PHP_INT_MAX; /** * Span Limits - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#span-limits- + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#span-limits */ public const OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT = 128; public const OTEL_SPAN_EVENT_COUNT_LIMIT = 128; @@ -50,6 +51,7 @@ interface Defaults public const OTEL_LINK_ATTRIBUTE_COUNT_LIMIT = 128; /** * LogRecord Limits + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#logrecord-limits */ public const OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT = PHP_INT_MAX; public const OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT = 128; @@ -79,27 +81,27 @@ interface Defaults public const OTEL_EXPORTER_OTLP_LOGS_PROTOCOL = 'http/protobuf'; /** * Zipkin Exporter - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#zipkin-exporter + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#zipkin-exporter */ public const OTEL_EXPORTER_ZIPKIN_ENDPOINT = 'http://localhost:9411/api/v2/spans'; // Timeout (seconds) public const OTEL_EXPORTER_ZIPKIN_TIMEOUT = 10; /** * Prometheus Exporter - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#prometheus-exporter + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#prometheus-exporter */ public const OTEL_EXPORTER_PROMETHEUS_HOST = '0.0.0.0'; public const OTEL_EXPORTER_PROMETHEUS_PORT = 9464; /** * Exporter Selection - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#exporter-selection + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#exporter-selection */ public const OTEL_TRACES_EXPORTER = 'otlp'; public const OTEL_METRICS_EXPORTER = 'otlp'; public const OTEL_LOGS_EXPORTER = 'otlp'; /** * Metrics SDK Configuration - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#metrics-sdk-configuration + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#metrics-sdk-configuration */ public const OTEL_METRICS_EXEMPLAR_FILTER = 'with_sampled_trace'; public const OTEL_METRIC_EXPORT_INTERVAL = 60000; @@ -108,7 +110,7 @@ interface Defaults public const OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION = 'explicit_bucket_histogram'; /** * Language Specific Environment Variables - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#language-specific-environment-variables + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#language-specific-environment-variables */ public const OTEL_PHP_TRACES_PROCESSOR = 'batch'; public const OTEL_PHP_DETECTORS = 'all'; diff --git a/src/SDK/Common/Configuration/KnownValues.php b/src/SDK/Common/Configuration/KnownValues.php index e080caac8..8975b20f9 100644 --- a/src/SDK/Common/Configuration/KnownValues.php +++ b/src/SDK/Common/Configuration/KnownValues.php @@ -8,7 +8,7 @@ /** * "Known values" for OpenTelemetry configurataion variables. - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md * Notice: Values specific to the PHP SDK have been added */ interface KnownValues @@ -88,7 +88,7 @@ interface KnownValues /** * General SDK Configuration - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#general-sdk-configuration + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration */ public const OTEL_LOG_LEVEL = [ self::VALUE_LOG_EMERGENCY, @@ -136,7 +136,7 @@ interface KnownValues public const OTEL_EXPORTER_OTLP_METRICS_PROTOCOL = self::VALUES_OTLP_PROTOCOL; /** * Exporter Selection - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#exporter-selection + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#exporter-selection */ public const OTEL_TRACES_EXPORTER = [ self::VALUE_OTLP, @@ -154,7 +154,7 @@ interface KnownValues ]; /** * Metrics SDK Configuration - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#metrics-sdk-configuration + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#metrics-sdk-configuration */ public const OTEL_METRICS_EXEMPLAR_FILTER = [ self::VALUE_WITH_SAMPLED_TRACE, @@ -163,7 +163,7 @@ interface KnownValues ]; /** * Language Specific Environment Variables - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#language-specific-environment-variables + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#language-specific-environment-variables */ public const OTEL_PHP_TRACES_PROCESSOR = [ self::VALUE_BATCH, diff --git a/src/SDK/Common/Configuration/ValueTypes.php b/src/SDK/Common/Configuration/ValueTypes.php index 330a70f41..64a69f6a7 100644 --- a/src/SDK/Common/Configuration/ValueTypes.php +++ b/src/SDK/Common/Configuration/ValueTypes.php @@ -6,13 +6,13 @@ /** * Environment variables defined by the OpenTelemetry specification and language specific variables for the PHP SDK. - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md */ interface ValueTypes { /** * General SDK Configuration - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#general-sdk-configuration + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration */ public const OTEL_RESOURCE_ATTRIBUTES = VariableTypes::MAP; public const OTEL_SERVICE_NAME = VariableTypes::STRING; @@ -22,7 +22,7 @@ interface ValueTypes public const OTEL_TRACES_SAMPLER_ARG = VariableTypes::MIXED; /** * Batch Span Processor - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#batch-span-processor + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#batch-span-processor */ public const OTEL_BSP_SCHEDULE_DELAY = VariableTypes::INTEGER; public const OTEL_BSP_EXPORT_TIMEOUT = VariableTypes::INTEGER; @@ -30,7 +30,7 @@ interface ValueTypes public const OTEL_BSP_MAX_EXPORT_BATCH_SIZE = VariableTypes::INTEGER; /** * Batch LogRecord Processor - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#batch-logrecord-processor + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#batch-logrecord-processor */ public const OTEL_BLRP_SCHEDULE_DELAY = VariableTypes::INTEGER; public const OTEL_BLRP_EXPORT_TIMEOUT = VariableTypes::INTEGER; @@ -38,13 +38,13 @@ interface ValueTypes public const OTEL_BLRP_MAX_EXPORT_BATCH_SIZE = VariableTypes::INTEGER; /** * Attribute Limits - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#attribute-limits + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#attribute-limits */ public const OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT = VariableTypes::INTEGER; public const OTEL_ATTRIBUTE_COUNT_LIMIT = VariableTypes::INTEGER; /** * Span Limits - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#span-limits + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#span-limits */ public const OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT = VariableTypes::INTEGER; public const OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT = VariableTypes::INTEGER; @@ -54,13 +54,13 @@ interface ValueTypes public const OTEL_LINK_ATTRIBUTE_COUNT_LIMIT = VariableTypes::INTEGER; /** * LogRecord Limits - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#logrecord-limits + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#logrecord-limits */ public const OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT = VariableTypes::INTEGER; public const OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT = VariableTypes::INTEGER; /** * OTLP Exporter - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/protocol/exporter.md#configuration-options + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options */ // Endpoint public const OTEL_EXPORTER_OTLP_ENDPOINT = VariableTypes::STRING; @@ -92,27 +92,27 @@ interface ValueTypes public const OTEL_EXPORTER_OTLP_METRICS_PROTOCOL = VariableTypes::ENUM; /** * Zipkin Exporter - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#zipkin-exporter + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#zipkin-exporter */ public const OTEL_EXPORTER_ZIPKIN_ENDPOINT = VariableTypes::STRING; public const OTEL_EXPORTER_ZIPKIN_TIMEOUT = VariableTypes::INTEGER; public const OTEL_EXPORTER_ZIPKIN_PROTOCOL = VariableTypes::STRING; /** * Prometheus Exporter - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#prometheus-exporter + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#prometheus-exporter */ public const OTEL_EXPORTER_PROMETHEUS_HOST = VariableTypes::STRING; public const OTEL_EXPORTER_PROMETHEUS_PORT = VariableTypes::INTEGER; /** * Exporter Selection - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#exporter-selection + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#exporter-selection */ public const OTEL_TRACES_EXPORTER = VariableTypes::LIST; public const OTEL_METRICS_EXPORTER = VariableTypes::LIST; public const OTEL_LOGS_EXPORTER = VariableTypes::LIST; /** * Metrics SDK Configuration - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#metrics-sdk-configuration + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#metrics-sdk-configuration */ public const OTEL_METRICS_EXEMPLAR_FILTER = VariableTypes::ENUM; public const OTEL_METRIC_EXPORT_INTERVAL = VariableTypes::INTEGER; @@ -121,7 +121,7 @@ interface ValueTypes public const OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION = VariableTypes::ENUM; /** * Language Specific Environment Variables - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#language-specific-environment-variables + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#language-specific-environment-variables */ public const OTEL_PHP_TRACES_PROCESSOR = VariableTypes::ENUM; public const OTEL_PHP_LOGS_PROCESSOR = VariableTypes::LIST; diff --git a/src/SDK/Common/Configuration/Variables.php b/src/SDK/Common/Configuration/Variables.php index 9fc950d7b..d0bb3c8ab 100644 --- a/src/SDK/Common/Configuration/Variables.php +++ b/src/SDK/Common/Configuration/Variables.php @@ -6,13 +6,13 @@ /** * Environment variables defined by the OpenTelemetry specification and language specific variables for the PHP SDK. - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md */ interface Variables { /** * General SDK Configuration - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#general-sdk-configuration + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration */ public const OTEL_RESOURCE_ATTRIBUTES = 'OTEL_RESOURCE_ATTRIBUTES'; public const OTEL_SERVICE_NAME = 'OTEL_SERVICE_NAME'; @@ -23,7 +23,7 @@ interface Variables public const OTEL_SDK_DISABLED = 'OTEL_SDK_DISABLED'; /** * Batch Span Processor - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#batch-span-processor + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#batch-span-processor */ public const OTEL_BSP_SCHEDULE_DELAY = 'OTEL_BSP_SCHEDULE_DELAY'; public const OTEL_BSP_EXPORT_TIMEOUT = 'OTEL_BSP_EXPORT_TIMEOUT'; @@ -31,7 +31,7 @@ interface Variables public const OTEL_BSP_MAX_EXPORT_BATCH_SIZE = 'OTEL_BSP_MAX_EXPORT_BATCH_SIZE'; /** * Batch LogRecord Processor - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#batch-logrecord-processor + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#batch-logrecord-processor */ public const OTEL_BLRP_SCHEDULE_DELAY = 'OTEL_BLRP_SCHEDULE_DELAY'; public const OTEL_BLRP_EXPORT_TIMEOUT = 'OTEL_BLRP_EXPORT_TIMEOUT'; @@ -39,19 +39,19 @@ interface Variables public const OTEL_BLRP_MAX_EXPORT_BATCH_SIZE = 'OTEL_BLRP_MAX_EXPORT_BATCH_SIZE'; /** * Attribute Limits - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#attribute-limits + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#attribute-limits */ public const OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT = 'OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT'; public const OTEL_ATTRIBUTE_COUNT_LIMIT = 'OTEL_ATTRIBUTE_COUNT_LIMIT'; /** * LogRecord limits - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#logrecord-limits + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#logrecord-limits */ public const OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT = 'OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT'; public const OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT = 'OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT'; /** * Span Limits - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#span-limits + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#span-limits */ public const OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT = 'OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT'; public const OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT = 'OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT'; @@ -61,7 +61,7 @@ interface Variables public const OTEL_LINK_ATTRIBUTE_COUNT_LIMIT = 'OTEL_LINK_ATTRIBUTE_COUNT_LIMIT'; /** * OTLP Exporter - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/protocol/exporter.md#configuration-options + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options */ // Endpoint public const OTEL_EXPORTER_OTLP_ENDPOINT = 'OTEL_EXPORTER_OTLP_ENDPOINT'; @@ -100,28 +100,28 @@ interface Variables public const OTEL_EXPORTER_OTLP_LOGS_PROTOCOL = 'OTEL_EXPORTER_OTLP_LOGS_PROTOCOL'; /** * Zipkin Exporter - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#zipkin-exporter + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#zipkin-exporter */ public const OTEL_EXPORTER_ZIPKIN_ENDPOINT = 'OTEL_EXPORTER_ZIPKIN_ENDPOINT'; public const OTEL_EXPORTER_ZIPKIN_TIMEOUT = 'OTEL_EXPORTER_ZIPKIN_TIMEOUT'; public const OTEL_EXPORTER_ZIPKIN_PROTOCOL = 'OTEL_EXPORTER_ZIPKIN_PROTOCOL'; /** * Prometheus Exporter - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#prometheus-exporter + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#prometheus-exporter */ public const OTEL_EXPORTER_PROMETHEUS_HOST = 'OTEL_EXPORTER_PROMETHEUS_HOST'; public const OTEL_EXPORTER_PROMETHEUS_PORT = 'OTEL_EXPORTER_PROMETHEUS_PORT'; /** * Exporter Selection - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#exporter-selection + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#exporter-selection */ public const OTEL_TRACES_EXPORTER = 'OTEL_TRACES_EXPORTER'; public const OTEL_METRICS_EXPORTER = 'OTEL_METRICS_EXPORTER'; public const OTEL_LOGS_EXPORTER = 'OTEL_LOGS_EXPORTER'; /** * Metrics SDK Configuration - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#metrics-sdk-configuration - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.24.0/specification/configuration/sdk-environment-variables.md#periodic-exporting-metricreader + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#metrics-sdk-configuration + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#periodic-exporting-metricreader */ public const OTEL_METRICS_EXEMPLAR_FILTER = 'OTEL_METRICS_EXEMPLAR_FILTER'; public const OTEL_METRIC_EXPORT_INTERVAL = 'OTEL_METRIC_EXPORT_INTERVAL'; @@ -130,7 +130,7 @@ interface Variables public const OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION = 'OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION'; /** * Language Specific Environment Variables - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#language-specific-environment-variables + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#language-specific-environment-variables */ public const OTEL_PHP_TRACES_PROCESSOR = 'OTEL_PHP_TRACES_PROCESSOR'; public const OTEL_PHP_LOGS_PROCESSOR = 'OTEL_PHP_LOGS_PROCESSOR'; diff --git a/src/SDK/Logs/LogRecordLimitsBuilder.php b/src/SDK/Logs/LogRecordLimitsBuilder.php index cf08bdd70..3aa5217ef 100644 --- a/src/SDK/Logs/LogRecordLimitsBuilder.php +++ b/src/SDK/Logs/LogRecordLimitsBuilder.php @@ -38,7 +38,7 @@ public function setAttributeValueLengthLimit(int $attributeValueLengthLimit): Lo } /** - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#attribute-limits + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#attribute-limits */ public function build(): LogRecordLimits { diff --git a/src/SDK/Resource/Detectors/SdkProvided.php b/src/SDK/Resource/Detectors/SdkProvided.php index 5b4940182..ec4ec7def 100644 --- a/src/SDK/Resource/Detectors/SdkProvided.php +++ b/src/SDK/Resource/Detectors/SdkProvided.php @@ -10,7 +10,7 @@ use OpenTelemetry\SemConv\ResourceAttributes; /** - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/README.md#semantic-attributes-with-sdk-provided-default-value + * @see https://github.com/open-telemetry/semantic-conventions/blob/main/docs/resource/README.md#semantic-attributes-with-sdk-provided-default-value */ final class SdkProvided implements ResourceDetectorInterface { diff --git a/src/SDK/SdkAutoloader.php b/src/SDK/SdkAutoloader.php index 863ce3c91..c08195e19 100644 --- a/src/SDK/SdkAutoloader.php +++ b/src/SDK/SdkAutoloader.php @@ -36,7 +36,7 @@ public static function autoload(): bool Globals::registerInitializer(function (Configurator $configurator) { $propagator = (new PropagatorFactory())->create(); if (Sdk::isDisabled()) { - //@see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#general-sdk-configuration + //@see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration return $configurator->withPropagator($propagator); } $emitMetrics = Configuration::getBoolean(Variables::OTEL_PHP_INTERNAL_METRICS_ENABLED); diff --git a/src/SDK/Trace/SamplerInterface.php b/src/SDK/Trace/SamplerInterface.php index 8c5eb3f36..de1147fa6 100644 --- a/src/SDK/Trace/SamplerInterface.php +++ b/src/SDK/Trace/SamplerInterface.php @@ -10,7 +10,7 @@ /** * This interface is used to organize sampling logic. * - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/sdk-tracing.md#sampler + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#sampler */ interface SamplerInterface { diff --git a/src/SDK/Trace/SpanLimitsBuilder.php b/src/SDK/Trace/SpanLimitsBuilder.php index 6c62a9ba9..11ed5a82b 100644 --- a/src/SDK/Trace/SpanLimitsBuilder.php +++ b/src/SDK/Trace/SpanLimitsBuilder.php @@ -96,7 +96,7 @@ public function setAttributePerLinkCountLimit(int $attributePerLinkCountLimit): /** * @param bool $retain whether general identity attributes should be retained * - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/span-general.md#general-identity-attributes + * @see https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/attributes.md#general-identity-attributes */ public function retainGeneralIdentityAttributes(bool $retain = true): SpanLimitsBuilder { @@ -106,7 +106,7 @@ public function retainGeneralIdentityAttributes(bool $retain = true): SpanLimits } /** - * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#span-limits- + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#span-limits */ public function build(): SpanLimits {