otlp-json 0.9.5__tar.gz → 0.9.7__tar.gz
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-0.9.5 → otlp_json-0.9.7}/PKG-INFO +1 -1
- {otlp_json-0.9.5 → otlp_json-0.9.7}/otlp_json/__init__.py +4 -3
- {otlp_json-0.9.5 → otlp_json-0.9.7}/pyproject.toml +1 -1
- {otlp_json-0.9.5 → otlp_json-0.9.7}/uv.lock +10 -10
- {otlp_json-0.9.5 → otlp_json-0.9.7}/.github/workflows/ci.yaml +0 -0
- {otlp_json-0.9.5 → otlp_json-0.9.7}/.gitignore +0 -0
- {otlp_json-0.9.5 → otlp_json-0.9.7}/.pre-commit-config.yaml +0 -0
- {otlp_json-0.9.5 → otlp_json-0.9.7}/otlp_json/py.typed +0 -0
- {otlp_json-0.9.5 → otlp_json-0.9.7}/readme.md +0 -0
- {otlp_json-0.9.5 → otlp_json-0.9.7}/test/test_pure_python.py +0 -0
|
@@ -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
|
|
@@ -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):
|
|
@@ -147,14 +147,14 @@ wheels = [
|
|
|
147
147
|
|
|
148
148
|
[[package]]
|
|
149
149
|
name = "googleapis-common-protos"
|
|
150
|
-
version = "1.
|
|
150
|
+
version = "1.69.0"
|
|
151
151
|
source = { registry = "https://pypi.org/simple" }
|
|
152
152
|
dependencies = [
|
|
153
153
|
{ name = "protobuf" },
|
|
154
154
|
]
|
|
155
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
155
|
+
sdist = { url = "https://files.pythonhosted.org/packages/c2/92/6bb11dad062ad7cc40665d0a8986193d54f1a0032b510e84e7182df9e661/googleapis_common_protos-1.69.0.tar.gz", hash = "sha256:5a46d58af72846f59009b9c4710425b9af2139555c71837081706b213b298187", size = 61264 }
|
|
156
156
|
wheels = [
|
|
157
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
157
|
+
{ url = "https://files.pythonhosted.org/packages/1d/66/0025e2b7a2ae353acea03cf9d4a96ae32ef02c116944e2eb11f559cf4b7b/googleapis_common_protos-1.69.0-py2.py3-none-any.whl", hash = "sha256:17835fdc4fa8da1d61cfe2d4d5d57becf7c61d4112f8d81c67eaa9d7ce43042d", size = 169749 },
|
|
158
158
|
]
|
|
159
159
|
|
|
160
160
|
[[package]]
|
|
@@ -374,7 +374,7 @@ wheels = [
|
|
|
374
374
|
|
|
375
375
|
[[package]]
|
|
376
376
|
name = "otlp-json"
|
|
377
|
-
version = "0.9.
|
|
377
|
+
version = "0.9.7"
|
|
378
378
|
source = { editable = "." }
|
|
379
379
|
|
|
380
380
|
[package.dev-dependencies]
|
|
@@ -457,20 +457,20 @@ wheels = [
|
|
|
457
457
|
|
|
458
458
|
[[package]]
|
|
459
459
|
name = "pyright"
|
|
460
|
-
version = "1.1.
|
|
460
|
+
version = "1.1.396"
|
|
461
461
|
source = { registry = "https://pypi.org/simple" }
|
|
462
462
|
dependencies = [
|
|
463
463
|
{ name = "nodeenv" },
|
|
464
464
|
{ name = "typing-extensions" },
|
|
465
465
|
]
|
|
466
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
466
|
+
sdist = { url = "https://files.pythonhosted.org/packages/bd/73/f20cb1dea1bdc1774e7f860fb69dc0718c7d8dea854a345faec845eb086a/pyright-1.1.396.tar.gz", hash = "sha256:142901f5908f5a0895be3d3befcc18bedcdb8cc1798deecaec86ef7233a29b03", size = 3814400 }
|
|
467
467
|
wheels = [
|
|
468
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
468
|
+
{ url = "https://files.pythonhosted.org/packages/80/be/ecb7cfb42d242b7ee764b52e6ff4782beeec00e3b943a3ec832b281f9da6/pyright-1.1.396-py3-none-any.whl", hash = "sha256:c635e473095b9138c471abccca22b9fedbe63858e0b40d4fc4b67da041891844", size = 5689355 },
|
|
469
469
|
]
|
|
470
470
|
|
|
471
471
|
[[package]]
|
|
472
472
|
name = "pytest"
|
|
473
|
-
version = "8.3.
|
|
473
|
+
version = "8.3.5"
|
|
474
474
|
source = { registry = "https://pypi.org/simple" }
|
|
475
475
|
dependencies = [
|
|
476
476
|
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
|
@@ -480,9 +480,9 @@ dependencies = [
|
|
|
480
480
|
{ name = "pluggy" },
|
|
481
481
|
{ name = "tomli", marker = "python_full_version < '3.11'" },
|
|
482
482
|
]
|
|
483
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
483
|
+
sdist = { url = "https://files.pythonhosted.org/packages/ae/3c/c9d525a414d506893f0cd8a8d0de7706446213181570cdbd766691164e40/pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845", size = 1450891 }
|
|
484
484
|
wheels = [
|
|
485
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
485
|
+
{ url = "https://files.pythonhosted.org/packages/30/3d/64ad57c803f1fa1e963a7946b6e0fea4a70df53c1a7fed304586539c2bac/pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820", size = 343634 },
|
|
486
486
|
]
|
|
487
487
|
|
|
488
488
|
[[package]]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|