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 entrypoint for use in opentelemetry-instrument #1278

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

codefromthecrypt
Copy link
Contributor

openinference can become automatically enabled with opentelemetry's zero code approach for python, by adding entrypoints into the pyproject.toml.

Specifically, after this, as long as you have the dependencies of your main code, plus openinference-instrumentation-XXXX, and env exported with standard variables, if you launch with opentelemetry-instrument, traces will magically appear.

opentelemetry-instrument python main.py

I've added this configuration for all instrumentation, similar to smolagents done in #1276. I've also added a unit test as that helps ensure refactorings won't break this later.

@codefromthecrypt codefromthecrypt requested a review from a team as a code owner February 8, 2025 07:31
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 8, 2025
@codefromthecrypt
Copy link
Contributor Author

crewai-latest fail seems unrelated, but I'll look into it

@codefromthecrypt
Copy link
Contributor Author

@nate-mar appreciate if you could fix crew-ai-latest. I think crewai-tools needs to be bumped when that's running, which also ends up with a newer version of openai, that seems to either drift the recordings or hit this in litellm. I ran out of time and I'm not going to be available a while from monday (though I will be tomorrow sunday UTC+8 morning). If I happen to be away and this becomes ready, feel free to push commits or rebase this without my permission.

ciao!

@nate-mar
Copy link
Contributor

nate-mar commented Feb 8, 2025 via email

@nate-mar nate-mar merged commit 2106acf into Arize-ai:main Feb 11, 2025
57 checks passed
@github-actions github-actions bot mentioned this pull request Feb 11, 2025
@codefromthecrypt codefromthecrypt deleted the entrypoints-1 branch February 12, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants