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: add opentelemetry api to va exec_cell in LocalCodeInterpreter #326

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

yzld2002
Copy link
Member

@yzld2002 yzld2002 commented Dec 16, 2024

This PR adds the OpenTelemetry traces to track the code cell executions. We can know the code, index, and its start time and duration.

Note: I only import the OpenTelemetry APIs here, the SDKs (implementations) are outside. So this shouldn't cause any troubles if the caller of VA does not have the SDKs installed.

Note: The code here cannot track the cells in the nested notebook (like generate_vision_code will spin up a notebook inside a cell). To achive this, I may need to use a dedicated CodeInterpreter.

image

@yzld2002 yzld2002 merged commit f66ccf5 into main Dec 17, 2024
8 checks passed
@yzld2002 yzld2002 deleted the zhichao-add-opentelemetry-api-to-va branch December 17, 2024 02:46
@yzld2002 yzld2002 restored the zhichao-add-opentelemetry-api-to-va branch December 20, 2024 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants