Skip to content

Commit 621d8b2

Browse files
committed
updated for bytes
Signed-off-by: wasup-yash <[email protected]>
1 parent ea4616d commit 621d8b2

File tree

1 file changed

+2
-0
lines changed
  • exporter/opentelemetry-exporter-otlp-proto-common/src/opentelemetry/exporter/otlp/proto/common/_internal

1 file changed

+2
-0
lines changed

exporter/opentelemetry-exporter-otlp-proto-common/src/opentelemetry/exporter/otlp/proto/common/_internal/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def _encode_value(value: Any) -> PB2AnyValue:
7575
return PB2AnyValue(int_value=value)
7676
if isinstance(value, float):
7777
return PB2AnyValue(double_value=value)
78+
if isinstance(value, bytes):
79+
return PB2AnyValue(bytes_value=value)
7880
if isinstance(value, Sequence):
7981
return PB2AnyValue(
8082
array_value=PB2ArrayValue(values=[_encode_value(v) for v in value])

0 commit comments

Comments
 (0)