We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea77451 commit 91abf27Copy full SHA for 91abf27
exporter/opentelemetry-exporter-otlp-proto-common/tests/test_attribute_encoder.py
@@ -36,6 +36,7 @@ def test_encode_attributes_all_kinds(self):
36
"greet": ["hola", "bonjour"], # Sequence[str]
37
"data": [1, 2], # Sequence[int]
38
"data_granular": [1.4, 2.4], # Sequence[float]
39
+ "binary_data": b'x00\x01\x02' #bytes
40
}
41
)
42
self.assertEqual(
@@ -80,6 +81,10 @@ def test_encode_attributes_all_kinds(self):
80
81
82
),
83
84
+ PB2AnyValue(
85
+ key="binary_data",
86
+ value=PB2AnyValue(bytes_value=b'x00\x01\x02'),
87
+ ),
88
],
89
90
0 commit comments