Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dreadnode/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ def get_run(self, run: str | ULID) -> Run:
return Run(**response.json())

def get_run_tasks(self, run: str | ULID) -> list[Task]:
response = self.request("GET", f"/strikes/projects/runs/{run!s}/tasks")
response = self.request("GET", f"/strikes/projects/runs/{run!s}/tasks/full")
return [Task(**task) for task in response.json()]

def get_run_trace(self, run: str | ULID) -> list[Task | TraceSpan]:
response = self.request("GET", f"/strikes/projects/runs/{run!s}/spans")
response = self.request("GET", f"/strikes/projects/runs/{run!s}/spans/full")
spans: list[Task | TraceSpan] = []
for item in response.json():
if "parent_task_span_id" in item:
Expand Down
Loading