Class GrpcOpenTelemetry.Builder
java.lang.Object
io.grpc.opentelemetry.GrpcOpenTelemetry.Builder
- Enclosing class:
GrpcOpenTelemetry
Builder for configuring
GrpcOpenTelemetry.-
Method Summary
Modifier and TypeMethodDescriptionaddOptionalLabel(String optionalLabelKey) Adds optionalLabelKey to all the metrics that can provide value for the optionalLabelKey.build()Returns a newGrpcOpenTelemetrybuilt with the configuration of thisGrpcOpenTelemetry.Builder.Disable all metrics.disableMetrics(Collection<String> disableMetrics) Disables the specified metrics from being collected and exported.enableMetrics(Collection<String> enableMetrics) Enables the specified metrics for collection and export.sdk(io.opentelemetry.api.OpenTelemetry sdk) Sets theOpenTelemetryentrypoint to use.
-
Method Details
-
sdk
Sets theOpenTelemetryentrypoint to use. This can be used to configure OpenTelemetry by returning the instance created by aio.opentelemetry.sdk.OpenTelemetrySdkBuilder. -
addOptionalLabel
Adds optionalLabelKey to all the metrics that can provide value for the optionalLabelKey. -
enableMetrics
Enables the specified metrics for collection and export. By default, only a subset of metrics are enabled. -
disableMetrics
Disables the specified metrics from being collected and exported. -
disableAllMetrics
Disable all metrics. If set to true all metrics must be explicitly enabled. -
build
Returns a newGrpcOpenTelemetrybuilt with the configuration of thisGrpcOpenTelemetry.Builder.
-