otlp-json 0.9.5__py3-none-any.whl → 0.9.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
otlp_json/__init__.py
CHANGED
|
@@ -114,9 +114,10 @@ def _value(v: _VALUE) -> dict[str, Any]:
|
|
|
114
114
|
if isinstance(v, float):
|
|
115
115
|
return {"doubleValue": float(v)}
|
|
116
116
|
if isinstance(v, bytes):
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
# FIXME: not reached!
|
|
118
|
+
# The API/SDK coerces bytes to str or drops the attribute, see comment in:
|
|
119
|
+
# https://github.com/open-telemetry/opentelemetry-python/issues/4118
|
|
120
|
+
return {"bytesValue": bytes(v).hex()}
|
|
120
121
|
if isinstance(v, str):
|
|
121
122
|
return {"stringValue": str(v)}
|
|
122
123
|
if isinstance(v, Sequence):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: otlp-json
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.7
|
|
4
4
|
Summary: 🐍Lightweight OTEL span to JSON converter, no dependencies, pure Python🐍
|
|
5
5
|
Project-URL: Repository, https://github.com/dimaqq/otlp-json
|
|
6
6
|
Project-URL: Issues, https://github.com/dimaqq/otlp-json/issues
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
otlp_json/__init__.py,sha256=0XbSIDoWRqPvhDW9TeMiOoMn9ExLT5yKNz9a3ikARgY,6316
|
|
2
|
+
otlp_json/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
otlp_json-0.9.7.dist-info/METADATA,sha256=7KhcPK3Rg0nto4wBiVvp6eQ1NaWmhslOzzA-9EtTNfs,2810
|
|
4
|
+
otlp_json-0.9.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
5
|
+
otlp_json-0.9.7.dist-info/RECORD,,
|
otlp_json-0.9.5.dist-info/RECORD
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
otlp_json/__init__.py,sha256=sUClLoVbl5pXQtY3qBpKHx8O7ahZPPTcbRdv6enmC4Q,6198
|
|
2
|
-
otlp_json/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
otlp_json-0.9.5.dist-info/METADATA,sha256=3g016j1QprMogf3He-BHvBK1meNoOLGWOf6pUcjQLJM,2810
|
|
4
|
-
otlp_json-0.9.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
5
|
-
otlp_json-0.9.5.dist-info/RECORD,,
|
|
File without changes
|