Skip to content

hsml.deployment_tracing_config #

DeploymentTracingConfig #

Tracing configuration for a serving deployment.

PARAMETER DESCRIPTION
enabled

Whether tracing is enabled.

TYPE: bool | None DEFAULT: None

otel_tracing_storage

Where traces are stored. Allowed values are online, offline and both. Defaults to online.

TYPE: str | None DEFAULT: STORAGE_ONLINE

input_token_price_per_million_tokens

Optional input token price used to compute trace cost metrics.

TYPE: float | None DEFAULT: None

output_token_price_per_million_tokens

Optional output token price used to compute trace cost metrics.

TYPE: float | None DEFAULT: None

sampling_percentage

Percentage of a model deployment's requests to trace, from 0 to 100, for example 0.01 for one in 10,000. None traces 10%; every request is still counted in the transformation metrics. Agent deployments ignore it.

TYPE: float | None DEFAULT: None

active

Whether a model deployment created with tracing records it right now. None means it does. Change it on a running deployment with Deployment.set_tracing, which needs no restart.

TYPE: bool | None DEFAULT: None

duration_days

Days a model deployment's tracing stays on each time it is switched on or the deployment starts, from 1. None keeps it on for 7 days. Hopsworks then switches it off and records when in expired_at. A longer period stores more traces in the online feature store.

TYPE: int | None DEFAULT: None

active property writable #

Whether a model deployment created with tracing records it right now; None means it does.

active_until property #

active_until: datetime | None

When Hopsworks switches a model deployment's tracing off, in UTC; None before it is first switched on.

duration_days property writable #

duration_days: int | None

Days a model deployment's tracing stays on each time it is switched on; None means 7.

enabled property writable #

Whether tracing is enabled.

expired_at property #

expired_at: datetime | None

When Hopsworks switched tracing off because its duration_days ran out, in UTC, or None.

Cleared when tracing is switched on again.

input_token_price_per_million_tokens property writable #

Optional input token price used to compute trace cost metrics.

otel_tracing_storage property writable #

Where traces are stored.

output_token_price_per_million_tokens property writable #

Optional output token price used to compute trace cost metrics.

paused_reason property #

paused_reason: str | None

Why Hopsworks paused tracing on a model or feature view deployment, overriding active, or None.

"DISK_NEARLY_FULL": the online feature store's disk tablespace is nearly full. "MEMORY_NEARLY_FULL": the online feature store's RonDB DataMemory is nearly full. Tracing resumes by itself once both have room again.

sampling_percentage property writable #

Percentage of a model deployment's requests that are traced; None traces 10%.

describe #

describe()

Print a JSON description of the tracing configuration.