Skip to content

🐛 Bug Report: Dataclasses are not serialized in workflows and tasks #2320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
nirga opened this issue Nov 20, 2024 · 0 comments · Fixed by #2800
Closed
1 task done

🐛 Bug Report: Dataclasses are not serialized in workflows and tasks #2320

nirga opened this issue Nov 20, 2024 · 0 comments · Fixed by #2800
Labels
bug Something isn't working

Comments

@nirga
Copy link
Member

nirga commented Nov 20, 2024

Which component is this bug for?

Traceloop SDK

📜 Description

When sending dataclasses as parameters, they're not logged as inputs and outputs of workflows and tasks

👟 Reproduction steps

👍 Expected behavior

👎 Actual Behavior with Screenshots

🤖 Python Version

No response

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

Yes I am willing to submit a PR!

@dosubot dosubot bot added the bug Something isn't working label Nov 20, 2024
kowshik24 added a commit to kowshik24/openllmetry that referenced this issue Mar 28, 2025
Fixes traceloop#2320

Add test cases for dataclass serialization in workflows and tasks.

* **Test Workflows**: Add a new test case `test_dataclass_serialization_workflow` in `packages/traceloop-sdk/tests/test_workflows.py` to verify dataclass serialization in workflows.
* **Test Tasks**: Add a new test case `test_dataclass_serialization_task` in `packages/traceloop-sdk/tests/test_tasks.py` to verify dataclass serialization in tasks.
* **Dataclass Definition**: Define a `TestDataClass` dataclass used in the new test cases.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/traceloop/openllmetry/issues/2320?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant