Class OpenTelemetryConfig.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, OpenTelemetryConfigOrBuilder, java.lang.Cloneable
    Enclosing class:
    OpenTelemetryConfig

    public static final class OpenTelemetryConfig.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<OpenTelemetryConfig.Builder>
    implements OpenTelemetryConfigOrBuilder
     Configuration for the OpenTelemetry tracer.
     [#extension: envoy.tracers.opentelemetry]
     [#next-free-field: 6]
     
    Protobuf type envoy.config.trace.v3.OpenTelemetryConfig
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OpenTelemetryConfig.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public OpenTelemetryConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<OpenTelemetryConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<OpenTelemetryConfig.Builder>
      • getDefaultInstanceForType

        public OpenTelemetryConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public OpenTelemetryConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public OpenTelemetryConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartialRepeatedFields

        private void buildPartialRepeatedFields​(OpenTelemetryConfig result)
      • mergeFrom

        public OpenTelemetryConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OpenTelemetryConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OpenTelemetryConfig.Builder>
      • mergeFrom

        public OpenTelemetryConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OpenTelemetryConfig.Builder>
        Throws:
        java.io.IOException
      • hasGrpcService

        public boolean hasGrpcService()
         The upstream gRPC cluster that will receive OTLP traces.
         Note that the tracer drops traces if the server does not read data fast enough.
         This field can be left empty to disable reporting traces to the gRPC service.
         Only one of ``grpc_service``, ``http_service`` may be used.
         
        .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        hasGrpcService in interface OpenTelemetryConfigOrBuilder
        Returns:
        Whether the grpcService field is set.
      • getGrpcService

        public GrpcService getGrpcService()
         The upstream gRPC cluster that will receive OTLP traces.
         Note that the tracer drops traces if the server does not read data fast enough.
         This field can be left empty to disable reporting traces to the gRPC service.
         Only one of ``grpc_service``, ``http_service`` may be used.
         
        .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getGrpcService in interface OpenTelemetryConfigOrBuilder
        Returns:
        The grpcService.
      • setGrpcService

        public OpenTelemetryConfig.Builder setGrpcService​(GrpcService value)
         The upstream gRPC cluster that will receive OTLP traces.
         Note that the tracer drops traces if the server does not read data fast enough.
         This field can be left empty to disable reporting traces to the gRPC service.
         Only one of ``grpc_service``, ``http_service`` may be used.
         
        .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
      • setGrpcService

        public OpenTelemetryConfig.Builder setGrpcService​(GrpcService.Builder builderForValue)
         The upstream gRPC cluster that will receive OTLP traces.
         Note that the tracer drops traces if the server does not read data fast enough.
         This field can be left empty to disable reporting traces to the gRPC service.
         Only one of ``grpc_service``, ``http_service`` may be used.
         
        .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
      • mergeGrpcService

        public OpenTelemetryConfig.Builder mergeGrpcService​(GrpcService value)
         The upstream gRPC cluster that will receive OTLP traces.
         Note that the tracer drops traces if the server does not read data fast enough.
         This field can be left empty to disable reporting traces to the gRPC service.
         Only one of ``grpc_service``, ``http_service`` may be used.
         
        .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
      • clearGrpcService

        public OpenTelemetryConfig.Builder clearGrpcService()
         The upstream gRPC cluster that will receive OTLP traces.
         Note that the tracer drops traces if the server does not read data fast enough.
         This field can be left empty to disable reporting traces to the gRPC service.
         Only one of ``grpc_service``, ``http_service`` may be used.
         
        .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
      • getGrpcServiceBuilder

        public GrpcService.Builder getGrpcServiceBuilder()
         The upstream gRPC cluster that will receive OTLP traces.
         Note that the tracer drops traces if the server does not read data fast enough.
         This field can be left empty to disable reporting traces to the gRPC service.
         Only one of ``grpc_service``, ``http_service`` may be used.
         
        .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
      • getGrpcServiceOrBuilder

        public GrpcServiceOrBuilder getGrpcServiceOrBuilder()
         The upstream gRPC cluster that will receive OTLP traces.
         Note that the tracer drops traces if the server does not read data fast enough.
         This field can be left empty to disable reporting traces to the gRPC service.
         Only one of ``grpc_service``, ``http_service`` may be used.
         
        .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getGrpcServiceOrBuilder in interface OpenTelemetryConfigOrBuilder
      • getGrpcServiceFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<GrpcService,​GrpcService.Builder,​GrpcServiceOrBuilder> getGrpcServiceFieldBuilder()
         The upstream gRPC cluster that will receive OTLP traces.
         Note that the tracer drops traces if the server does not read data fast enough.
         This field can be left empty to disable reporting traces to the gRPC service.
         Only one of ``grpc_service``, ``http_service`` may be used.
         
        .envoy.config.core.v3.GrpcService grpc_service = 1 [(.udpa.annotations.field_migrate) = { ... }
      • hasHttpService

        public boolean hasHttpService()
         The upstream HTTP cluster that will receive OTLP traces.
         This field can be left empty to disable reporting traces to the HTTP service.
         Only one of ``grpc_service``, ``http_service`` may be used.
        
         .. note::
        
         Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
         does not support the :ref:`format specifier <config_access_log_format>` as used for
         :ref:`HTTP access logging <config_access_log>`.
         The values configured are added as HTTP headers on the OTLP export request
         without any formatting applied.
         
        .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        hasHttpService in interface OpenTelemetryConfigOrBuilder
        Returns:
        Whether the httpService field is set.
      • getHttpService

        public HttpService getHttpService()
         The upstream HTTP cluster that will receive OTLP traces.
         This field can be left empty to disable reporting traces to the HTTP service.
         Only one of ``grpc_service``, ``http_service`` may be used.
        
         .. note::
        
         Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
         does not support the :ref:`format specifier <config_access_log_format>` as used for
         :ref:`HTTP access logging <config_access_log>`.
         The values configured are added as HTTP headers on the OTLP export request
         without any formatting applied.
         
        .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getHttpService in interface OpenTelemetryConfigOrBuilder
        Returns:
        The httpService.
      • setHttpService

        public OpenTelemetryConfig.Builder setHttpService​(HttpService value)
         The upstream HTTP cluster that will receive OTLP traces.
         This field can be left empty to disable reporting traces to the HTTP service.
         Only one of ``grpc_service``, ``http_service`` may be used.
        
         .. note::
        
         Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
         does not support the :ref:`format specifier <config_access_log_format>` as used for
         :ref:`HTTP access logging <config_access_log>`.
         The values configured are added as HTTP headers on the OTLP export request
         without any formatting applied.
         
        .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
      • setHttpService

        public OpenTelemetryConfig.Builder setHttpService​(HttpService.Builder builderForValue)
         The upstream HTTP cluster that will receive OTLP traces.
         This field can be left empty to disable reporting traces to the HTTP service.
         Only one of ``grpc_service``, ``http_service`` may be used.
        
         .. note::
        
         Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
         does not support the :ref:`format specifier <config_access_log_format>` as used for
         :ref:`HTTP access logging <config_access_log>`.
         The values configured are added as HTTP headers on the OTLP export request
         without any formatting applied.
         
        .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
      • mergeHttpService

        public OpenTelemetryConfig.Builder mergeHttpService​(HttpService value)
         The upstream HTTP cluster that will receive OTLP traces.
         This field can be left empty to disable reporting traces to the HTTP service.
         Only one of ``grpc_service``, ``http_service`` may be used.
        
         .. note::
        
         Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
         does not support the :ref:`format specifier <config_access_log_format>` as used for
         :ref:`HTTP access logging <config_access_log>`.
         The values configured are added as HTTP headers on the OTLP export request
         without any formatting applied.
         
        .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
      • clearHttpService

        public OpenTelemetryConfig.Builder clearHttpService()
         The upstream HTTP cluster that will receive OTLP traces.
         This field can be left empty to disable reporting traces to the HTTP service.
         Only one of ``grpc_service``, ``http_service`` may be used.
        
         .. note::
        
         Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
         does not support the :ref:`format specifier <config_access_log_format>` as used for
         :ref:`HTTP access logging <config_access_log>`.
         The values configured are added as HTTP headers on the OTLP export request
         without any formatting applied.
         
        .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
      • getHttpServiceBuilder

        public HttpService.Builder getHttpServiceBuilder()
         The upstream HTTP cluster that will receive OTLP traces.
         This field can be left empty to disable reporting traces to the HTTP service.
         Only one of ``grpc_service``, ``http_service`` may be used.
        
         .. note::
        
         Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
         does not support the :ref:`format specifier <config_access_log_format>` as used for
         :ref:`HTTP access logging <config_access_log>`.
         The values configured are added as HTTP headers on the OTLP export request
         without any formatting applied.
         
        .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
      • getHttpServiceOrBuilder

        public HttpServiceOrBuilder getHttpServiceOrBuilder()
         The upstream HTTP cluster that will receive OTLP traces.
         This field can be left empty to disable reporting traces to the HTTP service.
         Only one of ``grpc_service``, ``http_service`` may be used.
        
         .. note::
        
         Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
         does not support the :ref:`format specifier <config_access_log_format>` as used for
         :ref:`HTTP access logging <config_access_log>`.
         The values configured are added as HTTP headers on the OTLP export request
         without any formatting applied.
         
        .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
        Specified by:
        getHttpServiceOrBuilder in interface OpenTelemetryConfigOrBuilder
      • getHttpServiceFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<HttpService,​HttpService.Builder,​HttpServiceOrBuilder> getHttpServiceFieldBuilder()
         The upstream HTTP cluster that will receive OTLP traces.
         This field can be left empty to disable reporting traces to the HTTP service.
         Only one of ``grpc_service``, ``http_service`` may be used.
        
         .. note::
        
         Note: The ``request_headers_to_add`` property in the OTLP HTTP exporter service
         does not support the :ref:`format specifier <config_access_log_format>` as used for
         :ref:`HTTP access logging <config_access_log>`.
         The values configured are added as HTTP headers on the OTLP export request
         without any formatting applied.
         
        .envoy.config.core.v3.HttpService http_service = 3 [(.udpa.annotations.field_migrate) = { ... }
      • getServiceName

        public java.lang.String getServiceName()
         The name for the service. This will be populated in the ResourceSpan Resource attributes.
         If it is not provided, it will default to "unknown_service:envoy".
         
        string service_name = 2;
        Specified by:
        getServiceName in interface OpenTelemetryConfigOrBuilder
        Returns:
        The serviceName.
      • getServiceNameBytes

        public com.google.protobuf.ByteString getServiceNameBytes()
         The name for the service. This will be populated in the ResourceSpan Resource attributes.
         If it is not provided, it will default to "unknown_service:envoy".
         
        string service_name = 2;
        Specified by:
        getServiceNameBytes in interface OpenTelemetryConfigOrBuilder
        Returns:
        The bytes for serviceName.
      • setServiceName

        public OpenTelemetryConfig.Builder setServiceName​(java.lang.String value)
         The name for the service. This will be populated in the ResourceSpan Resource attributes.
         If it is not provided, it will default to "unknown_service:envoy".
         
        string service_name = 2;
        Parameters:
        value - The serviceName to set.
        Returns:
        This builder for chaining.
      • clearServiceName

        public OpenTelemetryConfig.Builder clearServiceName()
         The name for the service. This will be populated in the ResourceSpan Resource attributes.
         If it is not provided, it will default to "unknown_service:envoy".
         
        string service_name = 2;
        Returns:
        This builder for chaining.
      • setServiceNameBytes

        public OpenTelemetryConfig.Builder setServiceNameBytes​(com.google.protobuf.ByteString value)
         The name for the service. This will be populated in the ResourceSpan Resource attributes.
         If it is not provided, it will default to "unknown_service:envoy".
         
        string service_name = 2;
        Parameters:
        value - The bytes for serviceName to set.
        Returns:
        This builder for chaining.
      • ensureResourceDetectorsIsMutable

        private void ensureResourceDetectorsIsMutable()
      • getResourceDetectorsList

        public java.util.List<TypedExtensionConfig> getResourceDetectorsList()
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
        Specified by:
        getResourceDetectorsList in interface OpenTelemetryConfigOrBuilder
      • getResourceDetectorsCount

        public int getResourceDetectorsCount()
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
        Specified by:
        getResourceDetectorsCount in interface OpenTelemetryConfigOrBuilder
      • getResourceDetectors

        public TypedExtensionConfig getResourceDetectors​(int index)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
        Specified by:
        getResourceDetectors in interface OpenTelemetryConfigOrBuilder
      • setResourceDetectors

        public OpenTelemetryConfig.Builder setResourceDetectors​(int index,
                                                                TypedExtensionConfig value)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • setResourceDetectors

        public OpenTelemetryConfig.Builder setResourceDetectors​(int index,
                                                                TypedExtensionConfig.Builder builderForValue)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • addResourceDetectors

        public OpenTelemetryConfig.Builder addResourceDetectors​(TypedExtensionConfig value)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • addResourceDetectors

        public OpenTelemetryConfig.Builder addResourceDetectors​(int index,
                                                                TypedExtensionConfig value)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • addResourceDetectors

        public OpenTelemetryConfig.Builder addResourceDetectors​(TypedExtensionConfig.Builder builderForValue)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • addResourceDetectors

        public OpenTelemetryConfig.Builder addResourceDetectors​(int index,
                                                                TypedExtensionConfig.Builder builderForValue)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • addAllResourceDetectors

        public OpenTelemetryConfig.Builder addAllResourceDetectors​(java.lang.Iterable<? extends TypedExtensionConfig> values)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • clearResourceDetectors

        public OpenTelemetryConfig.Builder clearResourceDetectors()
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • removeResourceDetectors

        public OpenTelemetryConfig.Builder removeResourceDetectors​(int index)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • getResourceDetectorsBuilder

        public TypedExtensionConfig.Builder getResourceDetectorsBuilder​(int index)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • addResourceDetectorsBuilder

        public TypedExtensionConfig.Builder addResourceDetectorsBuilder()
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • addResourceDetectorsBuilder

        public TypedExtensionConfig.Builder addResourceDetectorsBuilder​(int index)
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • getResourceDetectorsBuilderList

        public java.util.List<TypedExtensionConfig.Builder> getResourceDetectorsBuilderList()
         An ordered list of resource detectors
         [#extension-category: envoy.tracers.opentelemetry.resource_detectors]
         
        repeated .envoy.config.core.v3.TypedExtensionConfig resource_detectors = 4;
      • hasSampler

        public boolean hasSampler()
         Specifies the sampler to be used by the OpenTelemetry tracer.
         The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
         This field can be left empty. In this case, the default Envoy sampling decision is used.
        
         See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
         [#extension-category: envoy.tracers.opentelemetry.samplers]
         
        .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
        Specified by:
        hasSampler in interface OpenTelemetryConfigOrBuilder
        Returns:
        Whether the sampler field is set.
      • getSampler

        public TypedExtensionConfig getSampler()
         Specifies the sampler to be used by the OpenTelemetry tracer.
         The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
         This field can be left empty. In this case, the default Envoy sampling decision is used.
        
         See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
         [#extension-category: envoy.tracers.opentelemetry.samplers]
         
        .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
        Specified by:
        getSampler in interface OpenTelemetryConfigOrBuilder
        Returns:
        The sampler.
      • setSampler

        public OpenTelemetryConfig.Builder setSampler​(TypedExtensionConfig value)
         Specifies the sampler to be used by the OpenTelemetry tracer.
         The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
         This field can be left empty. In this case, the default Envoy sampling decision is used.
        
         See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
         [#extension-category: envoy.tracers.opentelemetry.samplers]
         
        .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
      • setSampler

        public OpenTelemetryConfig.Builder setSampler​(TypedExtensionConfig.Builder builderForValue)
         Specifies the sampler to be used by the OpenTelemetry tracer.
         The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
         This field can be left empty. In this case, the default Envoy sampling decision is used.
        
         See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
         [#extension-category: envoy.tracers.opentelemetry.samplers]
         
        .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
      • mergeSampler

        public OpenTelemetryConfig.Builder mergeSampler​(TypedExtensionConfig value)
         Specifies the sampler to be used by the OpenTelemetry tracer.
         The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
         This field can be left empty. In this case, the default Envoy sampling decision is used.
        
         See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
         [#extension-category: envoy.tracers.opentelemetry.samplers]
         
        .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
      • clearSampler

        public OpenTelemetryConfig.Builder clearSampler()
         Specifies the sampler to be used by the OpenTelemetry tracer.
         The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
         This field can be left empty. In this case, the default Envoy sampling decision is used.
        
         See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
         [#extension-category: envoy.tracers.opentelemetry.samplers]
         
        .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
      • getSamplerBuilder

        public TypedExtensionConfig.Builder getSamplerBuilder()
         Specifies the sampler to be used by the OpenTelemetry tracer.
         The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
         This field can be left empty. In this case, the default Envoy sampling decision is used.
        
         See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
         [#extension-category: envoy.tracers.opentelemetry.samplers]
         
        .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
      • getSamplerOrBuilder

        public TypedExtensionConfigOrBuilder getSamplerOrBuilder()
         Specifies the sampler to be used by the OpenTelemetry tracer.
         The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
         This field can be left empty. In this case, the default Envoy sampling decision is used.
        
         See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
         [#extension-category: envoy.tracers.opentelemetry.samplers]
         
        .envoy.config.core.v3.TypedExtensionConfig sampler = 5;
        Specified by:
        getSamplerOrBuilder in interface OpenTelemetryConfigOrBuilder
      • getSamplerFieldBuilder

        private com.google.protobuf.SingleFieldBuilder<TypedExtensionConfig,​TypedExtensionConfig.Builder,​TypedExtensionConfigOrBuilder> getSamplerFieldBuilder()
         Specifies the sampler to be used by the OpenTelemetry tracer.
         The configured sampler implements the Sampler interface defined by the OpenTelemetry specification.
         This field can be left empty. In this case, the default Envoy sampling decision is used.
        
         See: `OpenTelemetry sampler specification <https://opentelemetry.io/docs/specs/otel/trace/sdk/#sampler>`_
         [#extension-category: envoy.tracers.opentelemetry.samplers]
         
        .envoy.config.core.v3.TypedExtensionConfig sampler = 5;