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.
This commit is contained in:
yucheng-berri 2026-10-29 14:47:51 -07:00 • committed by GitHub
parent 4ce724e3df
commit 8d441ebc15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(