litellm/litellm-proxy-extras
yucheng-berriai a86e333832 feat(otel/v2): store logging-exporter assignments in typed columns, not metadata
Move key/team/org logging-exporter assignments out of the untyped metadata JSON
blob into a typed logging_exporters String[] column on LiteLLM_VerificationToken,
LiteLLM_TeamTable, and LiteLLM_OrganizationTable (plus the Deleted* mirrors),
matching the existing policies/access_group_ids column convention rather than
burying a named-resource list in generic metadata.

The request-time resolver reads each identity level from its own column via
get_key_object / get_team_object / get_org_object. The six write paths (key
generate/update/regenerate, team new/update, org new/update) accept a typed
logging_exporters field, gate it through the shared visibility predicate via a
thin validate_logging_exporter_field adapter (so the assignment validator and its
tests are unchanged), and persist it to the column. Keys persist it like
access_group_ids (a real column), not like policies (which is tucked into
metadata). The typed optional field also removes the metadata removal-via-omission
attack surface: omitting the field means no change.

Round-trip validated against a real Postgres for team and key; regression tests
cover the resolver reading columns and the field adapter's gating.
2026-07-02 00:12:16 -07:00
..
dist adding build 2026-03-21 22:55:04 -07:00
litellm_proxy_extras feat(otel/v2): store logging-exporter assignments in typed columns, not metadata 2026-07-02 00:12:16 -07:00
tests [Fix] v2 resolver: swallow non-connection DB errors; wrap resolve failures 2026-04-21 15:53:07 -07:00
build_and_publish.md build: migrate packaging, CI, and Docker from Poetry to uv (#25007) 2026-04-09 11:46:23 -07:00
LICENSE install prisma migration files - connects litellm proxy to litellm's prisma migration files (#9637) 2025-03-29 15:27:09 -07:00
migration_runbook.md [Infra] Add freshness and destructive guards to migration workflow 2026-04-21 12:00:23 -07:00
pyproject.toml chore(deps): bump deps (#29860) 2026-06-06 21:44:54 +00:00
README.md build: migrate packaging, CI, and Docker from Poetry to uv (#25007) 2026-04-09 11:46:23 -07:00

Additional files for the proxy. Reduces the size of the main litellm package.

Currently, only stores the migration.sql files for litellm-proxy.

To install, run:

uv add litellm-proxy-extras

OR

uv tool install 'litellm[proxy]' # installs litellm-proxy-extras and other proxy dependencies

To use the migrations, run:

litellm --use_prisma_migrate