-
Notifications
You must be signed in to change notification settings - Fork 162
adds telemetry #284
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
adds telemetry #284
Conversation
|
Hi @epinault! The test should be easy to run locally. The main challenge is that some tests are "live", meaning they hit a server and test the responses. Those require an API key for the service being tested. I typically run the tests locally and focus on the live tests for the service I'm working with currently. Otherwise, running |
|
I think because it require the API key and I don t have any, thats where the challenge was. The test_helper does a fetch_env! . I ll just put fake value and see what happens. Just feels we could make it a little easier so we dont even need them in test for local test? |
a716045 to
910bc8a
Compare
|
@brainlid thanks! that helped! I updated the README and added tests. what do you think about the MR? |
|
@brainlid any chance we could merge this in? |
|
Hi @epinault! I tried to update the PR, but failed and gave up after about 30 minutes. I'm guessing the PR/branch isn't setup to "Allow edits from maintainers", either that or I was just having a bad day. It looks good! I like the telemetry module with the event docs and examples. Here's what I was trying to do:
There are about 5 tests failing in Once we get this fixed up I'll be happy to merge it! |
|
sounds good! I ll take a look this week and try to fix it up |
910bc8a to
e1f1aaa
Compare
|
rebased, fixed up the merge error, and the variable name. Also reformatted with 1.18 Looking at the 5 tests now |
f062ebb to
5ac6ebc
Compare
|
ok hopefully test are passing for you now too! I used a bit of "AI" to get the tests fixed up. 😅 |
|
Awesome @epinault! Thanks! This is a valuable addition. |
|
thank you for merging this! Now I just need to make an opentelemetry version of that for tracing 🫠 |
* main: updated readme for version install updated mix.exs version for release updated changelog for v0.3.3 added content part description to OpenAI module doc for file uploads fixed doc typo adds telemetry (#284) check that the requested tool_name exists - return an error if it does not exist in the chain added LLMChain.run_until_tool_used/3 (#292) Support for file with file_id in ChatOpenAI (#283) Fix options being passed to the ollama chat api (#179) Support for json_response in ChatModels.ChatGoogleAI (#277) support streaming responses from mistral (#287) feat: File urls for Google (#286)
This is an attempt to add some basic telemetry. This will be useful to then create an OTEL package to automatically get tracing from this telemetry setup.
I am happy to add tests as well but the setup is currently difficult in this project to run outside of CI. Is that the intent to not be able to run them locally? Is there way to make them run locally?