Changed
- Renamed
project_slug→projecton theLatitudeconstructor,init_latitude(), andcapture()options. TheSlugsuffix leaked an internal database concept into the SDK surface. Affects:Latitude(api_key=..., project=...)init_latitude(api_key=..., project=...)capture("name", fn, {"project": ...})
Deprecated
project_slugon both the constructor andcapture()options still works but logs a one-timelogging.warningand will be removed in a future release. When bothprojectandproject_slugare passed,projectwins.
Migration
- Latitude(api_key=..., project_slug="my-project")
+ Latitude(api_key=..., project="my-project")
- capture("run", fn, {"project_slug": "evaluations"})
+ capture("run", fn, {"project": "evaluations"})The X-Latitude-Project HTTP header name, the latitude.project span attribute, and the LATITUDE_PROJECT_SLUG environment variable convention are all unchanged — they're independent of the SDK option name.