Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Defaults.php

interface Defaults

Default values for environment variables defined by the OpenTelemetry specification and language specific variables for the PHP SDK.

Hierarchy

  • interface \OpenTelemetry\SDK\Common\Configuration\Defaults

Expanded class hierarchy of Defaults

All classes that implement Defaults

See also

https://github.com/open-telemetry/opentelemetry-specification/blob/main…

3 files declare their use of Defaults
LogsExporterFactory.php in vendor/open-telemetry/exporter-otlp/LogsExporterFactory.php
MetricExporterFactory.php in vendor/open-telemetry/exporter-otlp/MetricExporterFactory.php
SpanExporterFactory.php in vendor/open-telemetry/exporter-otlp/SpanExporterFactory.php
9 string references to 'Defaults'
ConfigCommand::execute in vendor/composer/composer/src/Composer/Command/ConfigCommand.php
DefaultsEntityForm::buildMessage in core/modules/layout_builder/src/Form/DefaultsEntityForm.php
Renders a message to display at the top of the layout builder.
LayoutBuilderHooks::systemBreadcrumbAlter in core/modules/layout_builder/src/Hook/LayoutBuilderHooks.php
Implements hook_system_breadcrumb_alter().
OverridesSectionStorage::getDefaultSectionStorage in core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
Returns the corresponding defaults section storage for this override.
views.data_types.schema.yml in core/modules/views/config/schema/views.data_types.schema.yml
core/modules/views/config/schema/views.data_types.schema.yml

... See full list

File

vendor/open-telemetry/sdk/Common/Configuration/Defaults.php, line 11

Namespace

OpenTelemetry\SDK\Common\Configuration
View source
interface Defaults {
    
    /**
     * 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';
    public const OTEL_TRACES_SAMPLER = 'parentbased_always_on';
    public const OTEL_SDK_DISABLED = 'false';
    
    /**
     * 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;
    public const OTEL_BSP_MAX_QUEUE_SIZE = 2048;
    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;
    public const OTEL_BLRP_MAX_QUEUE_SIZE = 2048;
    public const OTEL_BLRP_MAX_EXPORT_BATCH_SIZE = 512;
    
    /**
     * 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/configuration/sdk-environment-variables.md#span-limits
     */
    public const OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT = 128;
    public const OTEL_SPAN_EVENT_COUNT_LIMIT = 128;
    public const OTEL_SPAN_LINK_COUNT_LIMIT = 128;
    public const OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT = 128;
    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;
    
    /**
     * OTLP Exporter
     * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
     */
    // Endpoint
    public const OTEL_EXPORTER_OTLP_ENDPOINT = 'http://localhost:4318';
    public const OTEL_EXPORTER_OTLP_TRACES_ENDPOINT = 'http://localhost:4318';
    public const OTEL_EXPORTER_OTLP_METRICS_ENDPOINT = 'http://localhost:4318';
    public const OTEL_EXPORTER_OTLP_LOGS_ENDPOINT = 'http://localhost:4318';
    // Insecure
    public const OTEL_EXPORTER_OTLP_INSECURE = 'false';
    public const OTEL_EXPORTER_OTLP_TRACES_INSECURE = 'false';
    public const OTEL_EXPORTER_OTLP_METRICS_INSECURE = 'false';
    public const OTEL_EXPORTER_OTLP_LOGS_INSECURE = 'false';
    // Timeout (seconds)
    public const OTEL_EXPORTER_OTLP_TIMEOUT = 10000;
    
    //10s
    public const OTEL_EXPORTER_OTLP_TRACES_TIMEOUT = 10000;
    public const OTEL_EXPORTER_OTLP_METRICS_TIMEOUT = 10000;
    public const OTEL_EXPORTER_OTLP_LOGS_TIMEOUT = 10000;
    // Protocol
    public const OTEL_EXPORTER_OTLP_PROTOCOL = 'http/protobuf';
    public const OTEL_EXPORTER_OTLP_TRACES_PROTOCOL = 'http/protobuf';
    public const OTEL_EXPORTER_OTLP_METRICS_PROTOCOL = 'http/protobuf';
    public const OTEL_EXPORTER_OTLP_LOGS_PROTOCOL = 'http/protobuf';
    
    /**
     * 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 = 10000;
    
    //10s
    
    /**
     * 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/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/configuration/sdk-environment-variables.md#metrics-sdk-configuration
     */
    public const OTEL_METRICS_EXEMPLAR_FILTER = 'with_sampled_trace';
    public const OTEL_METRIC_EXPORT_INTERVAL = 60000;
    public const OTEL_METRIC_EXPORT_TIMEOUT = 30000;
    public const OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = 'cumulative';
    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/configuration/sdk-environment-variables.md#language-specific-environment-variables
     */
    public const OTEL_PHP_TRACES_PROCESSOR = 'batch';
    public const OTEL_PHP_DETECTORS = 'all';
    public const OTEL_PHP_AUTOLOAD_ENABLED = 'false';
    public const OTEL_PHP_INTERNAL_METRICS_ENABLED = 'false';
    public const OTEL_PHP_DISABLED_INSTRUMENTATIONS = [];
    public const OTEL_PHP_LOGS_PROCESSOR = 'batch';
    public const OTEL_PHP_LOG_DESTINATION = 'default';
    public const OTEL_PHP_EXPERIMENTAL_AUTO_ROOT_SPAN = 'false';
    public const OTEL_EXPERIMENTAL_CONFIG_FILE = 'sdk-config.yaml';

}

Members

Title Sort descending Modifiers Object type Summary
Defaults::OTEL_ATTRIBUTE_COUNT_LIMIT public constant Attribute Limits
Defaults::OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT public constant
Defaults::OTEL_BLRP_EXPORT_TIMEOUT public constant
Defaults::OTEL_BLRP_MAX_EXPORT_BATCH_SIZE public constant
Defaults::OTEL_BLRP_MAX_QUEUE_SIZE public constant
Defaults::OTEL_BLRP_SCHEDULE_DELAY public constant Batch LogRecord Processor
Defaults::OTEL_BSP_EXPORT_TIMEOUT public constant
Defaults::OTEL_BSP_MAX_EXPORT_BATCH_SIZE public constant
Defaults::OTEL_BSP_MAX_QUEUE_SIZE public constant
Defaults::OTEL_BSP_SCHEDULE_DELAY public constant Batch Span Processor
Defaults::OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT public constant
Defaults::OTEL_EXPERIMENTAL_CONFIG_FILE public constant
Defaults::OTEL_EXPORTER_OTLP_ENDPOINT public constant
Defaults::OTEL_EXPORTER_OTLP_INSECURE public constant
Defaults::OTEL_EXPORTER_OTLP_LOGS_ENDPOINT public constant
Defaults::OTEL_EXPORTER_OTLP_LOGS_INSECURE public constant
Defaults::OTEL_EXPORTER_OTLP_LOGS_PROTOCOL public constant
Defaults::OTEL_EXPORTER_OTLP_LOGS_TIMEOUT public constant
Defaults::OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION public constant
Defaults::OTEL_EXPORTER_OTLP_METRICS_ENDPOINT public constant
Defaults::OTEL_EXPORTER_OTLP_METRICS_INSECURE public constant
Defaults::OTEL_EXPORTER_OTLP_METRICS_PROTOCOL public constant
Defaults::OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE public constant
Defaults::OTEL_EXPORTER_OTLP_METRICS_TIMEOUT public constant
Defaults::OTEL_EXPORTER_OTLP_PROTOCOL public constant
Defaults::OTEL_EXPORTER_OTLP_TIMEOUT public constant
Defaults::OTEL_EXPORTER_OTLP_TRACES_ENDPOINT public constant
Defaults::OTEL_EXPORTER_OTLP_TRACES_INSECURE public constant
Defaults::OTEL_EXPORTER_OTLP_TRACES_PROTOCOL public constant
Defaults::OTEL_EXPORTER_OTLP_TRACES_TIMEOUT public constant
Defaults::OTEL_EXPORTER_PROMETHEUS_HOST public constant Prometheus Exporter
Defaults::OTEL_EXPORTER_PROMETHEUS_PORT public constant
Defaults::OTEL_EXPORTER_ZIPKIN_ENDPOINT public constant Zipkin Exporter
Defaults::OTEL_EXPORTER_ZIPKIN_TIMEOUT public constant
Defaults::OTEL_LINK_ATTRIBUTE_COUNT_LIMIT public constant
Defaults::OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT public constant
Defaults::OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT public constant LogRecord Limits
Defaults::OTEL_LOGS_EXPORTER public constant
Defaults::OTEL_LOG_LEVEL public constant General SDK Configuration
Defaults::OTEL_METRICS_EXEMPLAR_FILTER public constant Metrics SDK Configuration
Defaults::OTEL_METRICS_EXPORTER public constant
Defaults::OTEL_METRIC_EXPORT_INTERVAL public constant
Defaults::OTEL_METRIC_EXPORT_TIMEOUT public constant
Defaults::OTEL_PHP_AUTOLOAD_ENABLED public constant
Defaults::OTEL_PHP_DETECTORS public constant
Defaults::OTEL_PHP_DISABLED_INSTRUMENTATIONS public constant
Defaults::OTEL_PHP_EXPERIMENTAL_AUTO_ROOT_SPAN public constant
Defaults::OTEL_PHP_INTERNAL_METRICS_ENABLED public constant
Defaults::OTEL_PHP_LOGS_PROCESSOR public constant
Defaults::OTEL_PHP_LOG_DESTINATION public constant
Defaults::OTEL_PHP_TRACES_PROCESSOR public constant Language Specific Environment Variables
Defaults::OTEL_PROPAGATORS public constant
Defaults::OTEL_SDK_DISABLED public constant
Defaults::OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT public constant Span Limits
Defaults::OTEL_SPAN_EVENT_COUNT_LIMIT public constant
Defaults::OTEL_SPAN_LINK_COUNT_LIMIT public constant
Defaults::OTEL_TRACES_EXPORTER public constant Exporter Selection
Defaults::OTEL_TRACES_SAMPLER public constant

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal