Skip to content

Commit 4c845f8

Browse files
test(tracing): expect JSON-encoded metadata in mask-unset test (#1985)
The test asserted raw metadata values, but metadata values are JSON-encoded on prepare-v5-release, so it failed there. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Hassieb Pakzad <hassiebp@users.noreply.github.com>
1 parent 3b41467 commit 4c845f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/unit/test_otel.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,8 +2331,8 @@ def mask(*, data, **kwargs):
23312331

23322332
assert seen == [{"k": 1}]
23332333
assert self.get_metadata_attributes(span_data) == {
2334-
f"{LangfuseOtelSpanAttributes.OBSERVATION_METADATA}.k": 1,
2335-
f"{LangfuseOtelSpanAttributes.OBSERVATION_METADATA}.email": "***",
2334+
f"{LangfuseOtelSpanAttributes.OBSERVATION_METADATA}.k": "1",
2335+
f"{LangfuseOtelSpanAttributes.OBSERVATION_METADATA}.email": '"***"',
23362336
}
23372337
assert LangfuseOtelSpanAttributes.OBSERVATION_INPUT not in attributes
23382338
assert LangfuseOtelSpanAttributes.OBSERVATION_OUTPUT not in attributes

0 commit comments

Comments
 (0)