Changed
- Renamed
projectSlug→projectonLatitudeOptionsandContextOptions. Both are now spelled simplyproject— theSlugsuffix leaked an internal concept (the database column name) into the SDK surface. Affects:new Latitude({ apiKey, project })capture(name, fn, { project })initLatitude({ apiKey, project })
Deprecated
projectSlugon bothLatitudeOptionsandContextOptionsstill works but logs a one-timeconsole.warnand will be removed in a future release. When bothprojectandprojectSlugare passed,projectwins.
Migration
- new Latitude({ apiKey, projectSlug: "my-project" })
+ new Latitude({ apiKey, project: "my-project" })
- await capture("run", fn, { projectSlug: "evaluations" })
+ await 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.