From 8d441ebc151cee9d845b16a6293f6ab71c5120a0 Mon Sep 17 00:00:00 2001 From: yucheng-berri Date: Thu, 29 Oct 2026 14:47:51 -0700 Subject: [PATCH] test(otel): give the Langfuse destination tests the otel callback's stdout exporter (#49129) #48718 added TestLangfuseDestinationFields while #48723 made the unconfigured stdout placeholder opt-in (console_default=True, the otel callback's setting). Both merged within a minute, so main's integrations job fails six tests that read the placeholder's exporter. Build those providers with console_default=True so the operator-exporter checks keep their target. --- tests/unit/integrations/otel/test_otel_v2_destinations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/integrations/otel/test_otel_v2_destinations.py b/tests/unit/integrations/otel/test_otel_v2_destinations.py index 2bac85d43d7..6dd9ff35026 100644 --- a/tests/unit/integrations/otel/test_otel_v2_destinations.py +++ b/tests/unit/integrations/otel/test_otel_v2_destinations.py @@ -3451,7 +3451,7 @@ class TestLangfuseDestinationFields: for kind in ("otlp_grpc", "otlp_http", "console"): monkeypatch.setitem(otel_providers._EXPORTER_FACTORIES, kind, capture.build) # pyright: ignore[reportPrivateUsage] # the factory table is the seam for capturing each exporter config: Final = OpenTelemetryV2Config() - provider: Final = build_tracer_provider(config, tenant_overrides=True) + provider: Final = build_tracer_provider(config, tenant_overrides=True, console_default=True) attach_tenant_fan_out(provider, config) emitter: Final = SpanEmitter(get_tracer(provider, "litellm"), config) call: Final = replace( @@ -3491,7 +3491,7 @@ class TestLangfuseDestinationFields: capture: Final = _ExporterCapture() for kind in ("otlp_grpc", "otlp_http", "console"): monkeypatch.setitem(otel_providers._EXPORTER_FACTORIES, kind, capture.build) # pyright: ignore[reportPrivateUsage] # the factory table is the seam for capturing each exporter - provider: Final = build_tracer_provider(config, tenant_overrides=True) + provider: Final = build_tracer_provider(config, tenant_overrides=True, console_default=True) attach_tenant_fan_out(provider, config) emitter: Final = SpanEmitter(get_tracer(provider, "litellm"), config) call: Final = replace( @@ -3642,7 +3642,7 @@ class TestLangfuseDestinationFields: for kind in ("otlp_grpc", "otlp_http", "console"): monkeypatch.setitem(otel_providers._EXPORTER_FACTORIES, kind, capture.build) # pyright: ignore[reportPrivateUsage] # the factory table is the seam for capturing each exporter config: Final = OpenTelemetryV2Config() - provider: Final = build_tracer_provider(config, tenant_overrides=True) + provider: Final = build_tracer_provider(config, tenant_overrides=True, console_default=True) attach_tenant_fan_out(provider, config) emitter: Final = SpanEmitter(get_tracer(provider, "litellm"), config) destination: Final = destination_for(