Skip to content

Commit 2cc1453

Browse files
committed
Always set the cold/warm variant on attempt spans, even in dev
1 parent 82f3db6 commit 2cc1453

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/core/src/v3/workers/taskExecutor.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,9 @@ export class TaskExecutor {
354354
...(execution.attempt.number === 1
355355
? runTimelineMetrics.convertMetricsToSpanAttributes()
356356
: {}),
357-
...(typeof this._isWarmStart === "boolean"
358-
? {
359-
[SemanticInternalAttributes.STYLE_VARIANT]: this._isWarmStart
360-
? WARM_VARIANT
361-
: COLD_VARIANT,
362-
}
363-
: {}),
357+
[SemanticInternalAttributes.STYLE_VARIANT]: this._isWarmStart
358+
? WARM_VARIANT
359+
: COLD_VARIANT,
364360
...(typeof this._executionCount === "number"
365361
? {
366362
[SemanticInternalAttributes.ATTEMPT_EXECUTION_COUNT]: this._executionCount,

0 commit comments

Comments
 (0)