feat: add logfire integration

This commit is contained in:
alisalim17 2024-05-04 16:22:53 +04:00
parent 91971fa9e0
commit 39099e9c5b
3 changed files with 190 additions and 14 deletions

View file

@ -41,6 +41,7 @@ jobs:
pip install langchain
pip install lunary==0.2.5
pip install "langfuse==2.27.1"
pip install "logfire==0.29.0"
pip install numpydoc
pip install traceloop-sdk==0.0.69
pip install openai
@ -86,7 +87,6 @@ jobs:
exit 1
fi
cd ..
# Run pytest and generate JUnit XML report
- run:
@ -94,7 +94,7 @@ jobs:
command: |
pwd
ls
python -m pytest -vv litellm/tests/ -x --junitxml=test-results/junit.xml --durations=5
python -m pytest -vv litellm/tests/ -x --junitxml=test-results/junit.xml --durations=5
no_output_timeout: 120m
# Store test results
@ -170,6 +170,7 @@ jobs:
pip install "aioboto3==12.3.0"
pip install langchain
pip install "langfuse>=2.0.0"
pip install "logfire==0.29.0"
pip install numpydoc
pip install prisma
pip install fastapi
@ -223,7 +224,7 @@ jobs:
name: Start outputting logs
command: docker logs -f my-app
background: true
- run:
- run:
name: Wait for app to be ready
command: dockerize -wait http://localhost:4000 -timeout 1m
- run:
@ -231,7 +232,7 @@ jobs:
command: |
pwd
ls
python -m pytest -vv tests/ -x --junitxml=test-results/junit.xml --durations=5
python -m pytest -vv tests/ -x --junitxml=test-results/junit.xml --durations=5
no_output_timeout: 120m
# Store test results
@ -253,7 +254,7 @@ jobs:
name: Copy model_prices_and_context_window File to model_prices_and_context_window_backup
command: |
cp model_prices_and_context_window.json litellm/model_prices_and_context_window_backup.json
- run:
name: Check if litellm dir was updated or if pyproject.toml was modified
command: |
@ -338,4 +339,4 @@ workflows:
filters:
branches:
only:
- main
- main