different-ai/openwork · error · ObservabilityConfigError
is only supported for traceidratio samplers
Error message
is only supported for traceidratio samplers
What it means
Error "is only supported for traceidratio samplers" thrown in different-ai/openwork.
Source
Thrown at ee/packages/utils/src/observability.ts:262
)
}
}
function isRatioSampler(sampler: OTelSampler): boolean {
return sampler === "traceidratio" || sampler === "parentbased_traceidratio"
}
function parseOtelSampler(env: ObservabilityEnv): OTelSamplerConfig {
const name = parseOtelSamplerName(env)
const rawArgument = envValue(env, "OTEL_TRACES_SAMPLER_ARG")
if (isRatioSampler(name)) {
const ratio = rawArgument === undefined ? 1 : parseUnitInterval(rawArgument, "OTEL_TRACES_SAMPLER_ARG")
return { name, ratio, argument: String(ratio) }
}
if (rawArgument !== undefined) {
throw new ObservabilityConfigError(
"is only supported for traceidratio samplers",
"OTEL_TRACES_SAMPLER_ARG",
)
}
if (name === "always_off" || name === "parentbased_always_off") {
return { name, ratio: 0 }
}
return { name, ratio: 1 }
}
function otelSignalPath(signal: OTelSignal): string {
switch (signal) {
case "traces":
return "/v1/traces"
case "metrics":
return "/v1/metrics"View on GitHub (pinned to 2b7df46e8a)
When it happens
Trigger: Thrown at ee/packages/utils/src/observability.ts:262 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01).
Data as JSON: /api/errors/6359dc377181f7ce.
Report an issue: GitHub.