fix: documentations links (#1125)
This commit is contained in:
parent
b5170bf202
commit
ea86fe1891
|
|
@ -19,7 +19,7 @@ use OpenTelemetry\SDK\Trace\TracerProvider;
|
|||
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ require __DIR__ . '/../../../vendor/autoload.php';
|
|||
|
||||
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');
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use OpenTelemetry\SemConv\ResourceAttributes;
|
|||
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,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use Throwable;
|
|||
|
||||
/**
|
||||
* @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
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ namespace OpenTelemetry\SDK\Common\Configuration;
|
|||
|
||||
/**
|
||||
* 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';
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use Psr\Log\LogLevel;
|
|||
|
||||
/**
|
||||
* "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,
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ namespace OpenTelemetry\SDK\Common\Configuration;
|
|||
|
||||
/**
|
||||
* 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;
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ namespace OpenTelemetry\SDK\Common\Configuration;
|
|||
|
||||
/**
|
||||
* 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';
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class LogRecordLimitsBuilder
|
|||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use OpenTelemetry\SDK\Resource\ResourceInfo;
|
|||
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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class SdkAutoloader
|
|||
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);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ use OpenTelemetry\SDK\Common\Attribute\AttributesInterface;
|
|||
/**
|
||||
* 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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ class SpanLimitsBuilder
|
|||
/**
|
||||
* @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 @@ class SpanLimitsBuilder
|
|||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue