All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.sdk.trace.config.package-info Maven / Gradle / Ivy

/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * Classes that holds global trace parameters
 *
 * 

Contents

* *
    *
  • {@link io.opentelemetry.sdk.trace.config.TraceConfig} *
* *

Default values for {@link io.opentelemetry.sdk.trace.config.TraceConfig}

* *
    *
  • {@code SAMPLER: Samplers.alwaysOn()} *
  • {@code SPAN_MAX_NUM_ATTRIBUTES: 32} *
  • {@code SPAN_MAX_NUM_EVENTS: 128} *
  • {@code SPAN_MAX_NUM_LINKS: 32} *
  • {@code SPAN_MAX_NUM_ATTRIBUTES_PER_EVENT: 32} *
  • {@code SPAN_MAX_NUM_ATTRIBUTES_PER_LINK: 32} *
* *

Configuration options for {@link io.opentelemetry.sdk.trace.config.TraceConfig} can be read * from system properties, environment variables, or {@link java.util.Properties} objects. * *

For system Properties and {@link java.util.Properties} objects, {@link * io.opentelemetry.sdk.trace.config.TraceConfig} will look for the following names: * *

    *
  • {@code otel.config.sampler.probability}: to set the global default sampler which is used * when constructing a new {@code Span}. *
  • {@code otel.span.attribute.count.limit}: to set the global default max number of attributes * per {@code Span}. *
  • {@code otel.span.event.count.limit}: to set the global default max number of events per * {@code Span}. *
  • {@code otel.span.link.count.limit}: to set the global default max number of links per * {@code Span}. *
  • {@code otel.config.max.event.attrs}: to set the global default max number of attributes per * event. *
  • {@code otel.config.max.link.attrs}: to set the global default max number of attributes per * link. *
* *

For environment variable, {@link io.opentelemetry.sdk.trace.config.TraceConfig} will look for * the following names: * *

    *
  • {@code OTEL_CONFIG_SAMPLER_PROBABILITY}: to set the global default sampler which is used * when constructing a new {@code Span}. *
  • {@code OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT}: to set the global default max number of attributes * per {@code Span}. *
  • {@code OTEL_SPAN_EVENT_COUNT_LIMIT}: to set the global default max number of events per * {@code Span}. *
  • {@code OTEL_SPAN_LINK_COUNT_LIMIT}: to set the global default max number of links entries * per {@code Span}. *
  • {@code OTEL_CONFIG_MAX_EVENT_ATTRS}: to set the global default max number of attributes per * event. *
  • {@code OTEL_CONFIG_MAX_LINK_ATTRS}: to set the global default max number of attributes per * link. *
*/ @ParametersAreNonnullByDefault package io.opentelemetry.sdk.trace.config; import javax.annotation.ParametersAreNonnullByDefault;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy