Skip to content
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

feat(crewAI): Added trace config, context attributes, suppress tracing for CrewAI #851

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

shreyabsridhar
Copy link
Contributor

@shreyabsridhar shreyabsridhar commented Aug 12, 2024

Resolves: #731
Resolves: #748
Resolves: #719

Notes:

  • Trace config is implemented and tested
  • Suppress tracing is implemented
  • Context attributes is implemented and testing framework is in place but cannot be tested until crewAI tests are implemented

@shreyabsridhar shreyabsridhar requested a review from a team as a code owner August 12, 2024 18:55
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Aug 12, 2024
@@ -206,6 +212,7 @@ def __call__(
raise
span.set_status(trace_api.StatusCode.OK)
span.set_attribute(OUTPUT_VALUE, response)
span.set_attributes(dict(get_attributes_from_context()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to set these attributes first, check other implementations if you need more details but you can simply add it to the start_as_current_span call

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 13, 2024
@shreyabsridhar shreyabsridhar merged commit 4ad22fa into main Aug 13, 2024
4 checks passed
@shreyabsridhar shreyabsridhar deleted the crewai-config-propagation branch August 13, 2024 17:31
axiomofjoy pushed a commit that referenced this pull request Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
2 participants