refactor(langfuse): pass the resource attributes mapping straight to Resource.create

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-17 02:17:58 +00:00
parent ee18d703c6
commit 66cc42af8a

View file

@ -283,7 +283,7 @@ def build_isolated_tracer_provider(
}
)
provider: Final = TracerProvider(
resource=Resource.create(dict(attributes)),
resource=Resource.create(attributes),
sampler=TraceIdHashSampler(sample_rate) if sample_rate < 1 else None,
id_generator=_RequestedSpanIdGenerator(),
)