create_v2(
self,
*,
type: Literal['PROJECT', 'AGENT', 'EXPERIMENT'],| Name | Type | Description |
|---|---|---|
type* | Literal['PROJECT', 'AGENT', 'EXPERIMENT'] | Type identifies a tracing project, Agent tracing project, or experiment. |
upsert | bool | Omit | Default: omitUpdate an existing session with the same name |
longlived_ttl_days | Optional[int] | Omit | Default: omit |
extra_headers | Headers | None | Default: None |
extra_query | Query | None | Default: None |
extra_body | Body | None | Default: None |
timeout | float | httpx.Timeout | None | NotGiven | Default: not_given |
Create a session, or update an existing session with the same name when upsert is true. Returns the refreshed session representation without optional run statistics.
LonglivedTTLDays overrides long-lived trace retention. Null restores the workspace default.
Send extra headers
Add additional query parameters to the request
Add additional JSON properties to the request
Override the client-level default timeout for this request, in seconds