otlp-test-data 0.9.0__py3-none-any.whl → 0.9.2__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_test_data-0.9.0.dist-info → otlp_test_data-0.9.2.dist-info}/METADATA +1 -1
- otlp_test_data-0.9.2.dist-info/RECORD +5 -0
- otlp_test_data.py +4 -3
- otlp_test_data-0.9.0.dist-info/RECORD +0 -5
- {otlp_test_data-0.9.0.dist-info → otlp_test_data-0.9.2.dist-info}/WHEEL +0 -0
- {otlp_test_data-0.9.0.dist-info → otlp_test_data-0.9.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
otlp_test_data.py,sha256=n6fdzZkrZQxrDwlaxmLk0FGJ5_51XBDq7LxNyFdYXvQ,2941
|
|
2
|
+
otlp_test_data-0.9.2.dist-info/METADATA,sha256=vpkPUVtqdW8qHK3ORLGqSjqDt60ohYgC_srL67l2MAY,1949
|
|
3
|
+
otlp_test_data-0.9.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
4
|
+
otlp_test_data-0.9.2.dist-info/top_level.txt,sha256=ft5rEmyMAUMgA-09EOjh--RP05FB8jlthlJ1FywFTso,15
|
|
5
|
+
otlp_test_data-0.9.2.dist-info/RECORD,,
|
otlp_test_data.py
CHANGED
|
@@ -31,17 +31,18 @@ class Config:
|
|
|
31
31
|
time = None
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
def sample_proto(config: Config) -> bytes:
|
|
34
|
+
def sample_proto(config: Config | None = None) -> bytes:
|
|
35
35
|
return _proto_to_bytes(_spans_to_proto_object(sample_spans(config)))
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
def sample_json(config: Config) -> bytes:
|
|
38
|
+
def sample_json(config: Config | None = None) -> bytes:
|
|
39
39
|
return _proto_to_json(_spans_to_proto_object(sample_spans(config)))
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
def sample_spans(config: Config) -> Sequence[ReadableSpan]:
|
|
42
|
+
def sample_spans(config: Config | None = None) -> Sequence[ReadableSpan]:
|
|
43
43
|
"""Creates and finishes two spans, then returns them as a list."""
|
|
44
44
|
global time
|
|
45
|
+
config = config or Config()
|
|
45
46
|
tracer_provider = TracerProvider()
|
|
46
47
|
exporter = InMemorySpanExporter()
|
|
47
48
|
tracer_provider.add_span_processor(SimpleSpanProcessor(exporter))
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
otlp_test_data.py,sha256=nawhyR0ClypJ_1L1denG9uTcydqqAfqmuPU5xqwc_IM,2867
|
|
2
|
-
otlp_test_data-0.9.0.dist-info/METADATA,sha256=aGGgCwBapIaHfnZHHq8B1gh8EQN_8bPdPRQRx6QryIk,1949
|
|
3
|
-
otlp_test_data-0.9.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
4
|
-
otlp_test_data-0.9.0.dist-info/top_level.txt,sha256=ft5rEmyMAUMgA-09EOjh--RP05FB8jlthlJ1FywFTso,15
|
|
5
|
-
otlp_test_data-0.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|