forked from phoenix/litellm-mirror
[Feat] Allow setting custom arize endpoint (#5709)
* set arize endpoint * docs arize endpoint * fix arize endpoint
This commit is contained in:
parent
16176da9fa
commit
a9caba33ef
3 changed files with 6 additions and 1 deletions
|
@ -62,6 +62,7 @@ litellm_settings:
|
|||
environment_variables:
|
||||
ARIZE_SPACE_KEY: "d0*****"
|
||||
ARIZE_API_KEY: "141a****"
|
||||
ARIZE_ENDPOINT: "https://otlp.arize.com/v1" # OPTIONAL - your custom arize api endpoint
|
||||
```
|
||||
|
||||
## Support & Talk to Founders
|
||||
|
|
|
@ -1279,6 +1279,7 @@ litellm_settings:
|
|||
environment_variables:
|
||||
ARIZE_SPACE_KEY: "d0*****"
|
||||
ARIZE_API_KEY: "141a****"
|
||||
ARIZE_ENDPOINT: "https://otlp.arize.com/v1" # OPTIONAL - your custom arize api endpoint
|
||||
```
|
||||
|
||||
2. Start Proxy
|
||||
|
|
|
@ -2175,9 +2175,12 @@ def _init_custom_logger_compatible_class(
|
|||
OpenTelemetryConfig,
|
||||
)
|
||||
|
||||
arize_endpoint = (
|
||||
os.environ.get("ARIZE_ENDPOINT", None) or "https://otlp.arize.com/v1"
|
||||
)
|
||||
otel_config = OpenTelemetryConfig(
|
||||
exporter="otlp_grpc",
|
||||
endpoint="https://otlp.arize.com/v1",
|
||||
endpoint=arize_endpoint,
|
||||
)
|
||||
os.environ["OTEL_EXPORTER_OTLP_TRACES_HEADERS"] = (
|
||||
f"space_key={os.getenv('ARIZE_SPACE_KEY')},api_key={os.getenv('ARIZE_API_KEY')}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue