fix(otel): put the mutable-ok suppression on the dict construction line the type-discipline gate reports

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-09-25 17:27:21 +00:00
parent d0dfafbf89
commit de3d6b999b

View file

@ -84,9 +84,7 @@ class LangfuseMapper:
# JSON-payload attributes: each builder returns the serialized blob or None.
_BLOB_ATTRS: dict[str, Callable[[LLMCallSpanData], AttrValue | None]] = {
LANGFUSE_OBSERVATION_METADATA: lambda d: (
safe_dumps( # mutable-ok: safe_dumps only serializes real dicts
dict(d.request_metadata)
)
safe_dumps(dict(d.request_metadata)) # mutable-ok: safe_dumps only serializes real dicts
if d.request_metadata
else None
),