Package com.google.cloud.grpc.fallback
Class GcpFallbackOpenTelemetry.Builder
java.lang.Object
com.google.cloud.grpc.fallback.GcpFallbackOpenTelemetry.Builder
- Enclosing class:
- GcpFallbackOpenTelemetry
Builder for configuring
GcpFallbackOpenTelemetry.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns a newGcpFallbackOpenTelemetrybuilt with the configuration of thisGcpFallbackOpenTelemetry.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.withSdk(io.opentelemetry.api.OpenTelemetry sdk) Sets theOpenTelemetryentrypoint to use.
-
Method Details
-
withSdk
Sets theOpenTelemetryentrypoint to use. This can be used to configure OpenTelemetry by returning the instance created by aio.opentelemetry.sdk.OpenTelemetrySdkBuilder. -
enableMetrics
Enables the specified metrics for collection and export. By default, all metrics are enabled. -
disableMetrics
Disables the specified metrics from being collected and exported. -
disableAllMetrics
Disable all metrics. Any desired metric must be explicitly enabled after this. -
build
Returns a newGcpFallbackOpenTelemetrybuilt with the configuration of thisGcpFallbackOpenTelemetry.Builder.
-