Skip to content

Commit

Permalink
[improve][misc] Disable OTel by default when running the pulsar-perf …
Browse files Browse the repository at this point in the history
…tool (apache#23585)
  • Loading branch information
Shawyeok authored Nov 27, 2024
1 parent 6b694f6 commit 2c36410
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk;
import java.lang.management.ManagementFactory;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
Expand Down Expand Up @@ -79,6 +80,9 @@ public static ClientBuilder createClientBuilderFromArguments(PerformanceBaseArgu
.maxLookupRequests(arguments.maxLookupRequest)
.proxyServiceUrl(arguments.proxyServiceURL, arguments.proxyProtocol)
.openTelemetry(AutoConfiguredOpenTelemetrySdk.builder()
.addPropertiesSupplier(() -> Map.of(
"otel.sdk.disabled", "true"
))
.build().getOpenTelemetrySdk());

if (isNotBlank(arguments.authPluginClassName)) {
Expand Down

0 comments on commit 2c36410

Please sign in to comment.