Repository: open-telemetry/opentelemetry-java
File: sdk-extensions/incubator/src/test/java/io/opentelemetry/sdk/extension/incubator/fileconfig/OpenTelemetryConfigurationFactoryTest.java (Java)

Code before:
                                                .withOtlpHttp(new OtlpHttpExporterModel()))))))
            .withMeterProvider(
                new MeterProviderModel()
                    .withReaders(
                        Collections.singletonList(
                            new MetricReaderModel()
                                .withPeriodic(
                                    new PeriodicMetricReaderModel()
                                        .withExporter(
                                            new PushMetricExporterModel()
                                                .withOtlpHttp(new OtlpHttpMetricExporterModel())))))
                    .withViews(
                        Collections.singletonList(
                            new ViewModel()
                                .withSelector(
                                    new ViewSelectorModel().withInstrumentName("instrument-name"))
                                .withStream(
                                    new ViewStreamModel()
                                        .withName("stream-name")
                                        .withAttributeKeys(null)))));

    OpenTelemetrySdk expectedSdk =
        OpenTelemetrySdkBuilderUtil.setSdkConfigProvider(
                OpenTelemetrySdk.builder()
                    .setPropagators(
                        ContextPropagators.create(
                            TextMapPropagator.composite(
                                W3CTraceContextPropagator.getInstance(),
                                W3CBaggagePropagator.getInstance(),
                                OtTracePropagator.getInstance(),
                                B3Propagator.injectingMultiHeaders(),
                                B3Propagator.injectingSingleHeader(),
                                JaegerPropagator.getInstance())))
                    .setLoggerProvider(
                        SdkLoggerProvider.builder()
                            .setResource(expectedResource)
                            .setLogLimits(
                                () ->
                                    LogLimits.builder()
                                        .setMaxAttributeValueLength(1)
                                        .setMaxNumberOfAttributes(2)
                                        .build())
                            .addLogRecordProcessor(
                                io.opentelemetry.sdk.logs.export.BatchLogRecordProcessor.builder(
                                        OtlpHttpLogRecordExporter.getDefault())
                                    .build())
                            .build())
                    .setTracerProvider(
                        SdkTracerProvider.builder()
                            .setResource(expectedResource)
                            .setSpanLimits(

Review comment (suggestion):
This change isn't strictly necessary is it since the test code could still call `ExtendedOpenTelemetrySdk.create(..)`? Not suggesting reverting - just trying to confirm my understanding.

Code after:
                                .withBatch(
                                    new BatchSpanProcessorModel()
                                        .withExporter(
                                            new SpanExporterModel()
                                                .withOtlpHttp(new OtlpHttpExporterModel()))))))
            .withMeterProvider(
                new MeterProviderModel()
                    .withReaders(
                        Collections.singletonList(
                            new MetricReaderModel()
                                .withPeriodic(
                                    new PeriodicMetricReaderModel()
                                        .withExporter(
                                            new PushMetricExporterModel()
                                                .withOtlpHttp(new OtlpHttpMetricExporterModel())))))
                    .withViews(
                        Collections.singletonList(
                            new ViewModel()
                                .withSelector(
                                    new ViewSelectorModel().withInstrumentName("instrument-name"))
                                .withStream(
                                    new ViewStreamModel()
                                        .withName("stream-name")
                                        .withAttributeKeys(null)))));

    OpenTelemetrySdk expectedSdk =
        OpenTelemetrySdkBuilderUtil.setConfigProvider(
                OpenTelemetrySdk.builder()
                    .setPropagators(
                        ContextPropagators.create(
                            TextMapPropagator.composite(
                                W3CTraceContextPropagator.getInstance(),
                                W3CBaggagePropagator.getInstance(),
                                OtTracePropagator.getInstance(),
                                B3Propagator.injectingMultiHeaders(),
                                B3Propagator.injectingSingleHeader(),
                                JaegerPropagator.getInstance())))
                    .setLoggerProvider(
                        SdkLoggerProvider.builder()
                            .setResource(expectedResource)
                            .setLogLimits(
                                () ->
                                    LogLimits.builder()
                                        .setMaxAttributeValueLength(1)
                                        .setMaxNumberOfAttributes(2)
                                        .build())
                            .addLogRecordProcessor(
                                io.opentelemetry.sdk.logs.export.BatchLogRecordProcessor.builder(
                                        OtlpHttpLogRecordExporter.getDefault())
                                    .build())
                            .build())