Skip to content

Commit e7477a4

Browse files
lym953claude
andauthored
feat: [SVLS-8493] rename durable function execution tags (#748)
* feat: [SVLS-8493] rename durable function execution tags Rename span tags: - durable_function_execution_id -> aws_lambda.durable_function.execution_id - durable_function_execution_name -> aws_lambda.durable_function.execution_name Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * feat: [SVLS-8493] rename durable function execution tags to aws_lambda prefix Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent eda0f53 commit e7477a4

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/trace/durable-function-context.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ describe("durable-function-context", () => {
5656
const result = extractDurableFunctionContext(event);
5757

5858
expect(result).toEqual({
59-
durable_function_execution_name: "my-execution",
60-
durable_function_execution_id: "550e8400-e29b-41d4-a716-446655440004",
59+
"aws_lambda.durable_function.execution_name": "my-execution",
60+
"aws_lambda.durable_function.execution_id": "550e8400-e29b-41d4-a716-446655440004",
6161
});
6262
});
6363

src/trace/durable-function-context.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { logDebug } from "../utils";
22

33
export interface DurableFunctionContext {
4-
durable_function_execution_name: string;
5-
durable_function_execution_id: string;
4+
"aws_lambda.durable_function.execution_name": string;
5+
"aws_lambda.durable_function.execution_id": string;
66
}
77

88
export function extractDurableFunctionContext(event: any): DurableFunctionContext | undefined {
@@ -19,8 +19,8 @@ export function extractDurableFunctionContext(event: any): DurableFunctionContex
1919
}
2020

2121
return {
22-
durable_function_execution_name: parsed.executionName,
23-
durable_function_execution_id: parsed.executionId,
22+
"aws_lambda.durable_function.execution_name": parsed.executionName,
23+
"aws_lambda.durable_function.execution_id": parsed.executionId,
2424
};
2525
}
2626

0 commit comments

Comments
 (0)