Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ No code changes are required — `init_client()` detects the packages at runtime
| `LD_API_BASE_URI` | No | Evaluations management API host override; intentionally separate from `LD_BASE_URI` |
| `LD_UI_BASE_URI` | No | LaunchDarkly application host for evaluation-run links (default: `https://app.launchdarkly.com`). Set it for a non-production project, or its runs still link to the production app |

`init_client()` also sets the `launchdarkly.project_id` resource attribute to the resolved SDK key, not the project's ID.

### Run an evaluation from code (experimental)

> **Experimental.** Import Evaluations from Code from `launchdarkly_ai_server.experimental.evaluations`;
Expand Down
1 change: 1 addition & 0 deletions packages/client/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@ pip install "launchdarkly-ai-python[otel]"
**Other env vars / options read by `init_client()`:**
- `LD_SERVICE_NAME` / `options["serviceName"]` — sets `service.name` resource attribute (default: `'python-sdk'`)
- `LD_ENVIRONMENT` / `options["environment"]` — sets `deployment.environment` resource attribute
- Not configurable: the `launchdarkly.project_id` resource attribute is always set to the resolved SDK key, not the project's ID

**Graceful degradation:** if any OTel package is missing, telemetry is silently skipped and a `logger.warning` is emitted. The LD client still initializes and all AI API calls work normally.

Expand Down
Loading