Class SimpleSpanProcessorBuilder

    • Method Detail

      • fromConfigMap

        protected SimpleSpanProcessorBuilder fromConfigMap​(Map<String,​String> configMap,
                                                           io.opentelemetry.sdk.common.export.ConfigBuilder.NamingConvention namingConvention)
        Deprecated.
        Sets the configuration values from the given configuration map for only the available keys. This method looks for the following keys:
        • otel.ssp.export.sampled: to set whether only sampled spans should be exported.
        Specified by:
        fromConfigMap in class io.opentelemetry.sdk.common.export.ConfigBuilder<SimpleSpanProcessorBuilder>
        Parameters:
        configMap - Map holding the configuration values.
        Returns:
        this.
      • setExportOnlySampled

        public SimpleSpanProcessorBuilder setExportOnlySampled​(boolean exportOnlySampled)
        Deprecated.
        Set whether only sampled spans should be exported.

        Default value is true.

        Parameters:
        exportOnlySampled - if true report only sampled spans.
        Returns:
        this.