robotframework-tracer 0.2.3__py3-none-any.whl → 0.2.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.
@@ -38,19 +38,20 @@ class TracingListener:
38
38
 
39
39
  ROBOT_LISTENER_API_VERSION = 3
40
40
 
41
- def __init__(self, *args, **kwargs):
41
+ def __init__(self, *args):
42
42
  """Initialize the tracing listener.
43
43
 
44
- Accepts arguments in multiple formats:
45
- - Environment variables (recommended): OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAME
46
- - Keyword arguments: endpoint=..., service_name=...
47
- - RF listener args: key=value pairs (comma-separated)
44
+ Args are colon-separated key=value pairs from Robot Framework.
45
+ Example: robot --listener "TracingListener:service_name=test:capture_logs=true"
48
46
 
49
- Note: Robot Framework splits listener arguments on ':' which breaks URLs.
50
- This listener automatically reconstructs URLs that were split.
47
+ For URLs with colons, they are automatically reconstructed:
48
+ Example: robot --listener "TracingListener:endpoint=http://host:4318/v1/traces"
49
+
50
+ Recommended: Use environment variables for endpoints:
51
+ OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318/v1/traces
52
+ OTEL_SERVICE_NAME=my-tests
51
53
  """
52
54
  parsed_kwargs = self._parse_listener_args(args)
53
- parsed_kwargs.update(kwargs)
54
55
  self.config = TracerConfig(**parsed_kwargs)
55
56
 
56
57
  # Initialize OpenTelemetry with automatic resource detection
@@ -1 +1 @@
1
- __version__ = "0.2.3"
1
+ __version__ = "0.2.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: robotframework-tracer
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: OpenTelemetry distributed tracing for Robot Framework
5
5
  Author: Robot Framework Tracer Contributors
6
6
  License: Apache-2.0
@@ -0,0 +1,10 @@
1
+ robotframework_tracer/__init__.py,sha256=cZh3xnNaYhRisrqqWH5Gdt4zsgpbh1mUALJiUtGNG8M,204
2
+ robotframework_tracer/attributes.py,sha256=_pDHYBJs4QLrnR3Sms7_QyM9IGYHSjZekr-8fkAosBo,3806
3
+ robotframework_tracer/config.py,sha256=4Dis_UlhSaXkO4ln2VeAMIyvFBy_BD3Og9lI9MWXpnA,2530
4
+ robotframework_tracer/listener.py,sha256=1pIyf_HSSlsWhVFcEkGn44L0zq92etzgtkpYU9F0-w0,11921
5
+ robotframework_tracer/span_builder.py,sha256=4c3bOpUgVwSPoM3bh3Hl0Dfq2BxOWs_GQsFh9lvE7r8,4836
6
+ robotframework_tracer/version.py,sha256=SBl2EPFW-ltPvQ7vbVWItyAsz3aKYIpjO7vcfr84GkU,22
7
+ robotframework_tracer-0.2.4.dist-info/METADATA,sha256=sHBo8Ow07C3RYPnyo_yjMRzssRNo-i25idulsFuayfY,9393
8
+ robotframework_tracer-0.2.4.dist-info/WHEEL,sha256=WnJ8fYhv8N4SYVK2lLYNI6N0kVATA7b0piVUNvqIIJE,91
9
+ robotframework_tracer-0.2.4.dist-info/top_level.txt,sha256=G1sMKH-8SM_CdJe0Wm6wa_rg1uo62jfhft_UfaxZ05I,22
10
+ robotframework_tracer-0.2.4.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- robotframework_tracer/__init__.py,sha256=cZh3xnNaYhRisrqqWH5Gdt4zsgpbh1mUALJiUtGNG8M,204
2
- robotframework_tracer/attributes.py,sha256=_pDHYBJs4QLrnR3Sms7_QyM9IGYHSjZekr-8fkAosBo,3806
3
- robotframework_tracer/config.py,sha256=4Dis_UlhSaXkO4ln2VeAMIyvFBy_BD3Og9lI9MWXpnA,2530
4
- robotframework_tracer/listener.py,sha256=hjqPOa4EfM3K0O8huUuD7UF4tIbnvZ5MQOLsZEHzvLo,11895
5
- robotframework_tracer/span_builder.py,sha256=4c3bOpUgVwSPoM3bh3Hl0Dfq2BxOWs_GQsFh9lvE7r8,4836
6
- robotframework_tracer/version.py,sha256=PNiDER4qM19h9zdsdfgKt2_dT4WgYK7EguJ8RU2qA_g,22
7
- robotframework_tracer-0.2.3.dist-info/METADATA,sha256=HNhIFkN72EFlu0-_wg_HrZISZXGRNfc0KKLCLWf3b7o,9393
8
- robotframework_tracer-0.2.3.dist-info/WHEEL,sha256=WnJ8fYhv8N4SYVK2lLYNI6N0kVATA7b0piVUNvqIIJE,91
9
- robotframework_tracer-0.2.3.dist-info/top_level.txt,sha256=G1sMKH-8SM_CdJe0Wm6wa_rg1uo62jfhft_UfaxZ05I,22
10
- robotframework_tracer-0.2.3.dist-info/RECORD,,