robotframework-tracer 0.2.2__tar.gz → 0.2.3__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.
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/PKG-INFO +7 -4
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/README.md +6 -3
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/pyproject.toml +1 -1
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer/listener.py +24 -12
- robotframework_tracer-0.2.3/src/robotframework_tracer/version.py +1 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer.egg-info/PKG-INFO +7 -4
- robotframework_tracer-0.2.2/src/robotframework_tracer/version.py +0 -1
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/setup.cfg +0 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/setup.py +0 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer/__init__.py +0 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer/attributes.py +0 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer/config.py +0 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer/span_builder.py +0 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer.egg-info/SOURCES.txt +0 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer.egg-info/dependency_links.txt +0 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer.egg-info/requires.txt +0 -0
- {robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robotframework-tracer
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: OpenTelemetry distributed tracing for Robot Framework
|
|
5
5
|
Author: Robot Framework Tracer Contributors
|
|
6
6
|
License: Apache-2.0
|
|
@@ -116,11 +116,14 @@ export OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4318/v1/traces
|
|
|
116
116
|
export OTEL_SERVICE_NAME=my-tests
|
|
117
117
|
robot --listener robotframework_tracer.TracingListener tests/
|
|
118
118
|
|
|
119
|
-
# With inline options (
|
|
120
|
-
robot --listener "robotframework_tracer.TracingListener:service_name=my-tests
|
|
119
|
+
# With inline options (colon-separated key=value pairs)
|
|
120
|
+
robot --listener "robotframework_tracer.TracingListener:service_name=my-tests:capture_logs=true" tests/
|
|
121
|
+
|
|
122
|
+
# With custom endpoint (URL colons are automatically handled)
|
|
123
|
+
robot --listener "robotframework_tracer.TracingListener:endpoint=http://jaeger:4318/v1/traces:service_name=my-tests" tests/
|
|
121
124
|
```
|
|
122
125
|
|
|
123
|
-
> **Note:** Robot Framework splits listener arguments on `:`. URLs containing `://` are automatically reconstructed
|
|
126
|
+
> **Note:** Robot Framework splits listener arguments on `:`. Use colons to separate options. URLs containing `://` are automatically reconstructed.
|
|
124
127
|
|
|
125
128
|
### 3. View traces
|
|
126
129
|
|
|
@@ -79,11 +79,14 @@ export OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4318/v1/traces
|
|
|
79
79
|
export OTEL_SERVICE_NAME=my-tests
|
|
80
80
|
robot --listener robotframework_tracer.TracingListener tests/
|
|
81
81
|
|
|
82
|
-
# With inline options (
|
|
83
|
-
robot --listener "robotframework_tracer.TracingListener:service_name=my-tests
|
|
82
|
+
# With inline options (colon-separated key=value pairs)
|
|
83
|
+
robot --listener "robotframework_tracer.TracingListener:service_name=my-tests:capture_logs=true" tests/
|
|
84
|
+
|
|
85
|
+
# With custom endpoint (URL colons are automatically handled)
|
|
86
|
+
robot --listener "robotframework_tracer.TracingListener:endpoint=http://jaeger:4318/v1/traces:service_name=my-tests" tests/
|
|
84
87
|
```
|
|
85
88
|
|
|
86
|
-
> **Note:** Robot Framework splits listener arguments on `:`. URLs containing `://` are automatically reconstructed
|
|
89
|
+
> **Note:** Robot Framework splits listener arguments on `:`. Use colons to separate options. URLs containing `://` are automatically reconstructed.
|
|
87
90
|
|
|
88
91
|
### 3. View traces
|
|
89
92
|
|
{robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer/listener.py
RENAMED
|
@@ -98,23 +98,35 @@ class TracingListener:
|
|
|
98
98
|
def _parse_listener_args(args):
|
|
99
99
|
"""Parse Robot Framework listener arguments.
|
|
100
100
|
|
|
101
|
-
RF splits arguments on ':'
|
|
102
|
-
|
|
101
|
+
RF splits arguments on ':' and passes each as a separate arg.
|
|
102
|
+
Example: 'listener:endpoint=http://host:4318:service_name=test'
|
|
103
|
+
becomes args = ('endpoint=http', '//host', '4318', 'service_name=test')
|
|
104
|
+
|
|
105
|
+
This method reconstructs URLs and parses key=value pairs.
|
|
103
106
|
"""
|
|
104
107
|
if not args:
|
|
105
108
|
return {}
|
|
106
109
|
|
|
107
|
-
import re
|
|
108
|
-
|
|
109
|
-
# Rejoin with ':' to reconstruct original (RF splits on ':')
|
|
110
|
-
rejoined = ":".join(args)
|
|
111
|
-
|
|
112
|
-
# Match: key=value where value may contain URLs (stops at comma+key= or end)
|
|
113
110
|
kwargs = {}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
i = 0
|
|
112
|
+
while i < len(args):
|
|
113
|
+
arg = args[i]
|
|
114
|
+
|
|
115
|
+
if "=" in arg:
|
|
116
|
+
key, value = arg.split("=", 1)
|
|
117
|
+
# Check if value is start of a URL that got split
|
|
118
|
+
if value in ("http", "https") and i + 1 < len(args) and args[i + 1].startswith("//"):
|
|
119
|
+
# Reconstruct URL: scheme + :// + rest
|
|
120
|
+
url_parts = [value]
|
|
121
|
+
i += 1
|
|
122
|
+
while i < len(args) and "=" not in args[i]:
|
|
123
|
+
url_parts.append(args[i])
|
|
124
|
+
i += 1
|
|
125
|
+
kwargs[key.strip()] = ":".join(url_parts)
|
|
126
|
+
continue
|
|
127
|
+
else:
|
|
128
|
+
kwargs[key.strip()] = value.strip()
|
|
129
|
+
i += 1
|
|
118
130
|
|
|
119
131
|
return kwargs
|
|
120
132
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.3"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robotframework-tracer
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.3
|
|
4
4
|
Summary: OpenTelemetry distributed tracing for Robot Framework
|
|
5
5
|
Author: Robot Framework Tracer Contributors
|
|
6
6
|
License: Apache-2.0
|
|
@@ -116,11 +116,14 @@ export OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4318/v1/traces
|
|
|
116
116
|
export OTEL_SERVICE_NAME=my-tests
|
|
117
117
|
robot --listener robotframework_tracer.TracingListener tests/
|
|
118
118
|
|
|
119
|
-
# With inline options (
|
|
120
|
-
robot --listener "robotframework_tracer.TracingListener:service_name=my-tests
|
|
119
|
+
# With inline options (colon-separated key=value pairs)
|
|
120
|
+
robot --listener "robotframework_tracer.TracingListener:service_name=my-tests:capture_logs=true" tests/
|
|
121
|
+
|
|
122
|
+
# With custom endpoint (URL colons are automatically handled)
|
|
123
|
+
robot --listener "robotframework_tracer.TracingListener:endpoint=http://jaeger:4318/v1/traces:service_name=my-tests" tests/
|
|
121
124
|
```
|
|
122
125
|
|
|
123
|
-
> **Note:** Robot Framework splits listener arguments on `:`. URLs containing `://` are automatically reconstructed
|
|
126
|
+
> **Note:** Robot Framework splits listener arguments on `:`. Use colons to separate options. URLs containing `://` are automatically reconstructed.
|
|
124
127
|
|
|
125
128
|
### 3. View traces
|
|
126
129
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.2"
|
|
File without changes
|
|
File without changes
|
{robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer/__init__.py
RENAMED
|
File without changes
|
{robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer/attributes.py
RENAMED
|
File without changes
|
{robotframework_tracer-0.2.2 → robotframework_tracer-0.2.3}/src/robotframework_tracer/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|