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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otlp-json
3
- Version: 0.9.5
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
- return {
118
- "bytesValue": bytes(v)
119
- } # FIXME this can't be right; gotta encode this somehow
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
  [project]
2
2
  name = "otlp-json"
3
- version = "0.9.5"
3
+ version = "0.9.7"
4
4
  description = "🐍Lightweight OTEL span to JSON converter, no dependencies, pure Python🐍"
5
5
  requires-python = ">=3.8"
6
6
  # https://github.com/astral-sh/uv/issues/4204
@@ -147,14 +147,14 @@ wheels = [
147
147
 
148
148
  [[package]]
149
149
  name = "googleapis-common-protos"
150
- version = "1.68.0"
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/54/d2/c08f0d9f94b45faca68e355771329cba2411c777c8713924dd1baee0e09c/googleapis_common_protos-1.68.0.tar.gz", hash = "sha256:95d38161f4f9af0d9423eed8fb7b64ffd2568c3464eb542ff02c5bfa1953ab3c", size = 57367 }
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/3f/85/c99a157ee99d67cc6c9ad123abb8b1bfb476fab32d2f3511c59314548e4f/googleapis_common_protos-1.68.0-py2.py3-none-any.whl", hash = "sha256:aaf179b2f81df26dfadac95def3b16a95064c76a5f45f07e4c68a21bb371c4ac", size = 164985 },
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.5"
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.395"
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/fb/47/a2e1dfd70f9f0db34f70d5b108c82be57bf24185af69c95acff57f9239fa/pyright-1.1.395.tar.gz", hash = "sha256:53703169068c160bfb41e1b44ba3e2512492869c26cfad927e1268cb3fbb1b1c", size = 3813566 }
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/5f/a1/531897f8caa6c6cc99862cd1c908ddd8a366a51d968e83ab4523ded98b30/pyright-1.1.395-py3-none-any.whl", hash = "sha256:f9bc726870e740c6c77c94657734d90563a3e9765bb523b39f5860198ed75eef", size = 5688787 },
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.4"
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/05/35/30e0d83068951d90a01852cb1cef56e5d8a09d20c7f511634cc2f7e0372a/pytest-8.3.4.tar.gz", hash = "sha256:965370d062bce11e73868e0335abac31b4d3de0e82f4007408d242b4f8610761", size = 1445919 }
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/11/92/76a1c94d3afee238333bc0a42b82935dd8f9cf8ce9e336ff87ee14d9e1cf/pytest-8.3.4-py3-none-any.whl", hash = "sha256:50e16d954148559c9a74109af1eaf0c945ba2d8f30f0a3d3335edde19788b6f6", size = 343083 },
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