Uses of Class
codes.grow.packages.otelcollector.OtelCollectorConfig
Packages that use OtelCollectorConfig
-
Uses of OtelCollectorConfig in codes.grow.packages.otelcollector
Methods in codes.grow.packages.otelcollector that return OtelCollectorConfigModifier and TypeMethodDescriptionOtelCollectorConfig.Builder.build()Builds and validates the configuration.CollectorHealthClient.config()Returns the configuration.OtelCollectorClient.config()Returns the configuration.TelemetryHandle.config()Returns the collector config in use.static OtelCollectorConfigOtelCollectorConfig.fromEnv()Reads the configuration from the process environment.static OtelCollectorConfigReads the configuration from an explicit variable map (tests).Methods in codes.grow.packages.otelcollector with parameters of type OtelCollectorConfigModifier and TypeMethodDescriptionstatic CollectorHealthClientCollectorHealthClient.create(OtelCollectorConfig config) Creates a health client.static OtelCollectorClientOtelCollectorClient.create(OtelCollectorConfig config) Creates a client.static BatchingLogClientOtelCollectorLogs.createLogClient(OtelCollectorConfig config) A log client exporting OTLP logs to the collector.static BatchingLogClientOtelCollectorLogs.createLogClient(OtelCollectorConfig config, BatchOptions batch) A log client exporting OTLP logs to the collector with explicit batch options.static TelemetryHandleOtelCollectorTelemetry.initTelemetry(OtelCollectorConfig config) Starts telemetry for a config with the default options.static TelemetryHandleOtelCollectorTelemetry.initTelemetry(OtelCollectorConfig config, TelemetryOptions options) Starts telemetry.static TracingHandleOtelCollectorTracing.initTracing(OtelCollectorConfig config) Sets up tracing with every setting taken from a collector config.static TracingHandleOtelCollectorTracing.initTracing(TracingConfig config, OtelCollectorConfig defaults) Sets up tracing with an explicit config over collector defaults (seeOtelCollectorTracing.resolve(codes.grow.packages.otelcollector.tracing.TracingConfig, codes.grow.packages.otelcollector.OtelCollectorConfig)).static BatchingLogClient.BuilderOtelCollectorLogs.logClientBuilder(OtelCollectorConfig config) A log client builder preset with anOtlpLogExporter, the service resource and the configured batch options; customise redaction, resource or batching beforebuild().static BatchingLogClient.BuilderOtelCollectorLogs.logClientBuilder(OtelCollectorConfig config, LogExporter exporter) A log client builder preset likeOtelCollectorLogs.logClientBuilder(OtelCollectorConfig)with another exporter (tests).static io.opentelemetry.sdk.metrics.export.MetricExporterOtelCollectorMetrics.metricExporter(OtelCollectorConfig config) The official OTLP metric exporter for a collector config:http/protobuf→OtlpHttpMetricExporter(metricsUrl),grpc→OtlpGrpcMetricExporter.static io.opentelemetry.sdk.logs.export.LogRecordExporterOtlpLogExporter.officialExporter(OtelCollectorConfig config, boolean gzip) Builds the official OTLP log record exporter for a collector config (also used for theLoggerProviderofinitTelemetry).static TracingConfigOtelCollectorTracing.resolve(TracingConfig explicit, OtelCollectorConfig defaults) Merges an explicit tracing config over collector defaults.OtelCollectorTelemetry.resourceAttributes(OtelCollectorConfig config, ResourceDetector detector) Resource attributes for a config: detected < configured attributes < service fields (service.name,service.version,deployment.environment.nameand the olderdeployment.environment).Constructors in codes.grow.packages.otelcollector with parameters of type OtelCollectorConfig