Python SDKAPI ReferenceComponents
CreateObservabilityDestinationRequest - Python SDK
CreateObservabilityDestinationRequest - Python SDK
CreateObservabilityDestinationRequest method reference
The Python SDK and docs are currently in beta. Report issues on GitHub.
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
api_key_hashes | List[str] | ➖ | Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. null or omitted means all keys. Must contain at least one hash if provided. | <nil> |
config | Dict[str, Nullable[Any]] | ✔️ | Provider-specific configuration. The shape depends on type and is validated server-side. | {"baseUrl": "https://us.cloud.langfuse.com","publicKey": "pk-l...EfGh","secretKey": "sk-l...AbCd"} |
enabled | Optional[bool] | ➖ | Whether this destination should be enabled immediately. | true |
filter_rules | OptionalNullable[components.ObservabilityFilterRulesConfig] | ➖ | Optional structured filter rules controlling which events are forwarded. | <nil> |
name | str | ✔️ | Human-readable name for the destination. | Production Langfuse |
privacy_mode | Optional[bool] | ➖ | When true, request/response bodies are not forwarded — only metadata. | false |
sampling_rate | Optional[float] | ➖ | Sampling rate between 0.0001 and 1 (1 = 100%). | 1 |
type | components.CreateObservabilityDestinationRequestType | ✔️ | The destination type. Only stable destination types are accepted. | langfuse |
workspace_id | Optional[str] | ➖ | Optional workspace ID. Defaults to the authenticated entity’s default workspace. | 550e8400-e29b-41d4-a716-446655440000 |