Class GcpFallbackOpenTelemetry.Builder (1.11.0)
public static class GcpFallbackOpenTelemetry.Builder
Methods
build()
public GcpFallbackOpenTelemetry build()
disableAllMetrics()
public GcpFallbackOpenTelemetry.Builder disableAllMetrics()
Disable all metrics. Any desired metric must be explicitly enabled after this.
disableMetrics(Collection<String> disableMetrics)
public GcpFallbackOpenTelemetry.Builder disableMetrics(Collection<String> disableMetrics)
Disables the specified metrics from being collected and exported.
enableMetrics(Collection<String> enableMetrics)
public GcpFallbackOpenTelemetry.Builder enableMetrics(Collection<String> enableMetrics)
Enables the specified metrics for collection and export. By default, all metrics are enabled.
withSdk(OpenTelemetry sdk)
public GcpFallbackOpenTelemetry.Builder withSdk(OpenTelemetry sdk)
Sets the io.opentelemetry.api.OpenTelemetry entrypoint to use. This can be used to
configure OpenTelemetry by returning the instance created by a
io.opentelemetry.sdk.OpenTelemetrySdkBuilder.
| Parameter |
| Name |
Description |
sdk |
io.opentelemetry.api.OpenTelemetry
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-19 UTC."],[],[]]