@@ -13,7 +13,7 @@ type TerminalDeploymentStatus = Extract<
1313 "DEPLOYED" | "FAILED" | "TIMED_OUT" | "CANCELED"
1414> ;
1515
16- type LifecycleDeployment = Pick <
16+ type FinishedDeployment = Pick <
1717 WorkerDeployment ,
1818 | "friendlyId"
1919 | "version"
@@ -46,15 +46,15 @@ type EnvironmentInfo = {
4646
4747/**
4848 * Records a deployment's terminal transition as a single wide
49- * `deployment.lifecycle ` span, backdated createdAt → terminal (attribute
49+ * `deployment.finished ` span, backdated createdAt → terminal (attribute
5050 * contract in ../deploymentTelemetry.ts). Call exactly once, only after a
5151 * guarded status write confirmed this caller won the transition. Emitted on
5252 * ROOT_CONTEXT with forceRecording so the sampler can never drop it; never
5353 * throws.
5454 */
55- export function recordDeploymentLifecycle ( params : {
55+ export function recordDeploymentFinished ( params : {
5656 status : TerminalDeploymentStatus ;
57- deployment : LifecycleDeployment ;
57+ deployment : FinishedDeployment ;
5858 environment : EnvironmentInfo ;
5959 reason ?: string ;
6060} ) : void {
@@ -68,7 +68,7 @@ export function recordDeploymentLifecycle(params: {
6868 const errorData = parseErrorData ( deployment . errorData ) ;
6969
7070 const span = tracer . startSpan (
71- "deployment.lifecycle " ,
71+ "deployment.finished " ,
7272 {
7373 startTime : deployment . createdAt ,
7474 attributes : {
@@ -112,7 +112,7 @@ export function recordDeploymentLifecycle(params: {
112112
113113 span . end ( terminalAt ) ;
114114 } catch ( error ) {
115- logger . debug ( "recordDeploymentLifecycle failed" , {
115+ logger . debug ( "recordDeploymentFinished failed" , {
116116 deploymentFriendlyId : params . deployment . friendlyId ,
117117 error : error instanceof Error ? error . message : String ( error ) ,
118118 } ) ;
@@ -121,7 +121,7 @@ export function recordDeploymentLifecycle(params: {
121121
122122/**
123123 * Records a deployment's creation as a zero-duration `deployment.initialized`
124- * event — the funnel counterpart to `deployment.lifecycle ` for detecting
124+ * event — the funnel counterpart to `deployment.finished ` for detecting
125125 * stuck deployments. Never throws.
126126 */
127127export function recordDeploymentInitialized ( params : {
0 commit comments