Uses of Class
codes.grow.packages.otelcollector.OtelCollectorConfig.Builder
Packages that use OtelCollectorConfig.Builder
-
Uses of OtelCollectorConfig.Builder in codes.grow.packages.otelcollector
Methods in codes.grow.packages.otelcollector that return OtelCollectorConfig.BuilderModifier and TypeMethodDescriptionstatic OtelCollectorConfig.BuilderOtelCollectorConfig.builder()Starts an empty builder (every field at its default).OtelCollectorConfig.Builder.compression(TracingConfig.Compression compression) Sets the export compression (default gzip).OtelCollectorConfig.Builder.connectTimeout(Duration d) Sets the connect timeout (default 10 s).OtelCollectorConfig.Builder.environment(String environment) Setsdeployment.environment.name.OtelCollectorConfig.Builder.exportTimeout(Duration timeout) Sets the deadline of one OTLP export including the exporter's retries (default 10 s).Fills every field that was not set explicitly from the environment:GROW_OPENTELEMETRY_COLLECTOR_*, thenGROW_OTEL_*, then the standardOTEL_*variables.Sets the OTLP/gRPC target (default: host ofurl(String), port 4317);https://enables TLS.Adds a header sent with every export and withping(for exampleAuthorization).Adds headers sent with every export.Sets thehealth_checkURL.Sets request hooks.Sets the logger (default silent).OtelCollectorConfig.Builder.logs(boolean enabled) Turns log export on or off (default on).OtelCollectorConfig.Builder.logsBatch(BatchOptions batch) Sets the log batch settings (OTEL_BLRP_*are then ignored).OtelCollectorConfig.Builder.metricExportInterval(Duration interval) Sets the periodic metric reader interval (default 60 s).OtelCollectorConfig.Builder.metrics(boolean enabled) Turns metric export on or off (default on).OtelCollectorConfig.Builder.propagators(String... propagators) Sets the propagators.OtelCollectorConfig.Builder.propagators(List<String> propagators) Sets the propagators (defaulttracecontext,baggage).OtelCollectorConfig.Builder.protocol(TracingConfig.Protocol protocol) Sets the export protocol (NATIVEis rejected bybuild()).Sets the export protocol by name:grpc,http/protobufornative.Sets an explicit proxy URL for health, ping and version calls.OtelCollectorConfig.Builder.requestTimeout(Duration d) Sets the per-attempt timeout of health, ping and version calls (default 30 s).OtelCollectorConfig.Builder.resourceAttribute(String key, Object value) Adds one resource attribute.OtelCollectorConfig.Builder.resourceAttributes(Map<String, ?> attributes) Adds resource attributes (explicit keys win over environment keys).OtelCollectorConfig.Builder.resourceDetectors(List<String> detectors) Sets the resource detectors (host,process,container,k8s); an empty list disables detection.OtelCollectorConfig.Builder.retry(RetryPolicy retry) Sets the retry policy (defaultRetryPolicy.defaults()).OtelCollectorConfig.Builder.runtimeMetrics(boolean enabled) Turns JVM runtime metrics on or off (default off).OtelCollectorConfig.Builder.sampler(TracingConfig.SamplerType sampler) Sets the trace sampler (defaultparentbased_always_on).OtelCollectorConfig.Builder.samplerRatio(double ratio) Sets the ratio of the*traceidratiosamplers (default 1).OtelCollectorConfig.Builder.serviceName(String serviceName) Setsservice.name.OtelCollectorConfig.Builder.serviceVersion(String serviceVersion) Setsservice.version.OtelCollectorConfig.Builder.signalHeader(Signal signal, String name, String value) Adds a header sent only with exports of one signal (merged overheader(java.lang.String, java.lang.String)).Sets the full OTLP endpoint of one signal, used as is (no path appended).OtelCollectorConfig.Builder.telemetryUrl(String telemetryUrl) Sets the internal telemetry (Prometheus) URL used byserverVersionas fallback.OtelCollectorConfig.Builder.tls(TlsOptions tls) Sets the TLS options; environment TLS variables are then ignored.OtelCollectorConfig.toBuilder()Returns a builder with these values (every field counts as explicit).OtelCollectorConfig.Builder.totalTimeout(Duration d) Sets the total timeout per call including retries (default 120 s).OtelCollectorConfig.Builder.traces(boolean enabled) Turns trace export on or off (default on).OtelCollectorConfig.Builder.tracesBatch(TracingConfig.BatchSettings batch) Sets the batch span processor settings (OTEL_BSP_*are then ignored).Sets the OTLP/HTTP base URL (defaulthttp://127.0.0.1:4318); signal paths are appended.OtelCollectorConfig.Builder.userAgentSuffix(String suffix) Sets the text appended to theUser-Agent.Sets the zpages base URL.