Skip to content

Commit f86eff6

Browse files
committed
updated for bytes
Signed-off-by: wasup-yash <[email protected]>
1 parent 9a20504 commit f86eff6

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

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

+2
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)