Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public class GrpcExporterBuilder<T extends Marshaler> {
private Supplier<Map<String, String>> headerSupplier = Collections::emptyMap;
private TlsConfigHelper tlsConfigHelper = new TlsConfigHelper();
@Nullable private RetryPolicy retryPolicy = RetryPolicy.getDefault();
private Supplier<MeterProvider> meterProviderSupplier = GlobalOpenTelemetry::getMeterProvider;
private Supplier<MeterProvider> meterProviderSupplier =
() -> GlobalOpenTelemetry.getOrNoop().getMeterProvider();
private InternalTelemetryVersion internalTelemetryVersion = InternalTelemetryVersion.LEGACY;

private ComponentLoader componentLoader =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public final class HttpExporterBuilder<T extends Marshaler> {

private TlsConfigHelper tlsConfigHelper = new TlsConfigHelper();
@Nullable private RetryPolicy retryPolicy = RetryPolicy.getDefault();
private Supplier<MeterProvider> meterProviderSupplier = GlobalOpenTelemetry::getMeterProvider;
private Supplier<MeterProvider> meterProviderSupplier =
() -> GlobalOpenTelemetry.getOrNoop().getMeterProvider();
private InternalTelemetryVersion internalTelemetryVersion = InternalTelemetryVersion.LEGACY;
private ComponentLoader componentLoader =
ComponentLoader.forClassLoader(HttpExporterBuilder.class.getClassLoader());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public final class ZipkinSpanExporterBuilder {
// which is created when no custom sender is set (see OkHttpSender.Builder)
private boolean compressionEnabled = true;
private int readTimeoutMillis = (int) TimeUnit.SECONDS.toMillis(10);
private Supplier<MeterProvider> meterProviderSupplier = GlobalOpenTelemetry::getMeterProvider;
private Supplier<MeterProvider> meterProviderSupplier =
() -> GlobalOpenTelemetry.getOrNoop().getMeterProvider();
private InternalTelemetryVersion internalTelemetryVersion = InternalTelemetryVersion.LEGACY;

/**
Expand Down
Loading