threadify-sdk 0.2.3__tar.gz → 0.2.5__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.
- {threadify_sdk-0.2.3/threadify_sdk.egg-info → threadify_sdk-0.2.5}/PKG-INFO +1 -1
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/pyproject.toml +1 -1
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify/data_retriever.py +6 -2
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify/otel_exporter.py +2 -3
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5/threadify_sdk.egg-info}/PKG-INFO +1 -1
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/CHANGELOG.md +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/LICENSE +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/MANIFEST.in +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/README.md +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/setup.cfg +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/tests/test_client.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/tests/test_connection.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/tests/test_data_retriever.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/tests/test_models.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/tests/test_notification.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/tests/test_step.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/tests/test_thread.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify/__init__.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify/client.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify/connection.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify/models.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify/notification.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify/step.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify/thread.py +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify_sdk.egg-info/SOURCES.txt +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify_sdk.egg-info/dependency_links.txt +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify_sdk.egg-info/requires.txt +0 -0
- {threadify_sdk-0.2.3 → threadify_sdk-0.2.5}/threadify_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: threadify-sdk
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Python SDK for Threadify — service-delivery intelligence. Track every customer request from start to finish across every system, team, and partner. Visit: https://threadify.dev
|
|
5
5
|
Author-email: Threadify Team <team@threadify.dev>
|
|
6
6
|
License: MIT
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "threadify-sdk"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.5"
|
|
8
8
|
description = "Python SDK for Threadify — service-delivery intelligence. Track every customer request from start to finish across every system, team, and partner. Visit: https://threadify.dev"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -163,7 +163,10 @@ class DataRetriever:
|
|
|
163
163
|
limit: $limit
|
|
164
164
|
offset: $offset
|
|
165
165
|
) {{
|
|
166
|
-
{
|
|
166
|
+
threads {{
|
|
167
|
+
{THREAD_FIELDS}
|
|
168
|
+
}}
|
|
169
|
+
totalCount
|
|
167
170
|
}}
|
|
168
171
|
}}
|
|
169
172
|
"""
|
|
@@ -180,7 +183,8 @@ class DataRetriever:
|
|
|
180
183
|
if q.started_before:
|
|
181
184
|
variables["startedBefore"] = q.started_before
|
|
182
185
|
data = await self._client.query(query, variables)
|
|
183
|
-
|
|
186
|
+
connection = data.get("threadsByRef") or {}
|
|
187
|
+
threads_list = connection.get("threads") or []
|
|
184
188
|
return [ArchivedThread(t, self._client) for t in threads_list if isinstance(t, dict)]
|
|
185
189
|
|
|
186
190
|
async def get_validation_results(self, thread_id: str, step_name: str = "") -> list[dict[str, Any]]:
|
|
@@ -120,15 +120,14 @@ class ThreadifySpanExporter(_SpanExporterBase):
|
|
|
120
120
|
logger.exception("Failed to process span")
|
|
121
121
|
|
|
122
122
|
async def _do_process_span(self, span: ReadableSpan) -> None:
|
|
123
|
-
ctx = span.
|
|
123
|
+
ctx = span.get_span_context()
|
|
124
124
|
trace_id = format(ctx.trace_id, "032x")
|
|
125
125
|
span_id = format(ctx.span_id, "016x")
|
|
126
126
|
thread = await self._get_or_start_thread(span, trace_id)
|
|
127
127
|
|
|
128
128
|
# Step name
|
|
129
129
|
step_name = self._span_attr(span, "threadify.step_name") or span.name
|
|
130
|
-
|
|
131
|
-
step = thread.step(step_name, service_name or self._connection.service_name)
|
|
130
|
+
step = thread.step(step_name)
|
|
132
131
|
|
|
133
132
|
# Separate attributes into context / refs
|
|
134
133
|
context: dict[str, str] = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: threadify-sdk
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: Python SDK for Threadify — service-delivery intelligence. Track every customer request from start to finish across every system, team, and partner. Visit: https://threadify.dev
|
|
5
5
|
Author-email: Threadify Team <team@threadify.dev>
|
|
6
6
|
License: MIT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|