Skip to content

Commit 91abf27

Browse files
committed
updated test for otlp bytes
Signed-off-by: wasup-yash <[email protected]>
1 parent ea77451 commit 91abf27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exporter/opentelemetry-exporter-otlp-proto-common/tests/test_attribute_encoder.py

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test_encode_attributes_all_kinds(self):
3636
"greet": ["hola", "bonjour"], # Sequence[str]
3737
"data": [1, 2], # Sequence[int]
3838
"data_granular": [1.4, 2.4], # Sequence[float]
39+
"binary_data": b'x00\x01\x02' #bytes
3940
}
4041
)
4142
self.assertEqual(
@@ -80,6 +81,10 @@ def test_encode_attributes_all_kinds(self):
8081
)
8182
),
8283
),
84+
PB2AnyValue(
85+
key="binary_data",
86+
value=PB2AnyValue(bytes_value=b'x00\x01\x02'),
87+
),
8388
],
8489
)
8590

0 commit comments

Comments
 (0)