forked from phoenix/litellm-mirror
fix deps
This commit is contained in:
parent
1f748f776d
commit
61ff712a08
2 changed files with 10 additions and 3 deletions
|
@ -14,10 +14,14 @@ join our [discord](https://discord.gg/wuPM9dRgDw)
|
|||
|
||||
## Pre-Requisites
|
||||
|
||||
Ensure you have run `pip install logfire` for this integration
|
||||
Ensure you have installed the following packages to use this integration
|
||||
|
||||
```shell
|
||||
pip install logfire litellm
|
||||
pip install litellm
|
||||
|
||||
pip install opentelemetry-api==1.25.0
|
||||
pip install opentelemetry-sdk==1.25.0
|
||||
pip install opentelemetry-exporter-otlp==1.25.0
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
|
|
|
@ -64,7 +64,6 @@ from ..integrations.litedebugger import LiteDebugger
|
|||
from ..integrations.logfire_logger import LogfireLevel, LogfireLogger
|
||||
from ..integrations.lunary import LunaryLogger
|
||||
from ..integrations.openmeter import OpenMeterLogger
|
||||
from ..integrations.opentelemetry import OpenTelemetry, OpenTelemetryConfig
|
||||
from ..integrations.prometheus import PrometheusLogger
|
||||
from ..integrations.prometheus_services import PrometheusServicesLogger
|
||||
from ..integrations.prompt_layer import PromptLayerLogger
|
||||
|
@ -1761,6 +1760,10 @@ def _init_custom_logger_compatible_class(
|
|||
elif logging_integration == "logfire":
|
||||
if "LOGFIRE_TOKEN" not in os.environ:
|
||||
raise ValueError("LOGFIRE_TOKEN not found in environment variables")
|
||||
from litellm.integrations.opentelemetry import (
|
||||
OpenTelemetry,
|
||||
OpenTelemetryConfig,
|
||||
)
|
||||
|
||||
otel_config = OpenTelemetryConfig(
|
||||
exporter="otlp_http",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue