otlp-test-data 0.11.3__py3-none-any.whl → 0.11.4__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.
@@ -105,6 +105,12 @@ def _proto_to_json(data: Message) -> bytes:
105
105
  "SPAN_KIND_PRODUCER": 4,
106
106
  "SPAN_KIND_CONSUMER": 5,
107
107
  }[sp["kind"]]
108
+ if status := sp["status"]:
109
+ status["code"] = {
110
+ "STATUS_CODE_UNSET": 0,
111
+ "STATUS_CODE_OK": 1,
112
+ "STATUS_CODE_ERROR": 2,
113
+ }[status["code"]]
108
114
 
109
115
  return json.dumps(dic).encode("utf-8")
110
116
 
@@ -199,7 +205,7 @@ def instrumentation_scopes():
199
205
  "string": "cheese",
200
206
  "bytes": b"bb",
201
207
  "empty-list": [],
202
- "empty-dict": {}, # type: ignore
208
+ # "empty-dict": {}, # not allowed for instrumentation scopes
203
209
  },
204
210
  )
205
211
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otlp-test-data
3
- Version: 0.11.3
3
+ Version: 0.11.4
4
4
  Summary: Produces OTLP data using OTEL instrumentation
5
5
  Project-URL: Repository, https://github.com/dimaqq/otlp-test-data
6
6
  Project-URL: Issues, https://github.com/dimaqq/otlp-test-data/issues
@@ -0,0 +1,5 @@
1
+ otlp_test_data/__init__.py,sha256=TMkh9igaySapYKpGIQpFGfkFzMiB1XYyotZOsSMoyVU,7492
2
+ otlp_test_data/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ otlp_test_data-0.11.4.dist-info/METADATA,sha256=9NkybvQe02UOVFvzKoXuFHFm44v89JOP96M6xXmFDRs,2247
4
+ otlp_test_data-0.11.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ otlp_test_data-0.11.4.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- otlp_test_data/__init__.py,sha256=Lgb6VmoSnPZ_kepsPMcxSAVx1NLYsYfNjrV1bPD48iE,7203
2
- otlp_test_data/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- otlp_test_data-0.11.3.dist-info/METADATA,sha256=vYuSUVDR2yxYt7C25_7Pd4ZsiMyUxotLsT8eS3hZ39k,2247
4
- otlp_test_data-0.11.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- otlp_test_data-0.11.3.dist-info/RECORD,,