Skip to content

Commit ad226d4

Browse files
committed
fix: remove codepath accessory from prompts.list() span
1 parent 7a5d9d9 commit ad226d4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/trigger-sdk/src/v3/promptManagement.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ export function listPrompts(
124124
): Promise<ListPromptsResponseBody> {
125125
const apiClient = apiClientManager.clientOrThrow();
126126
return apiClient.listPrompts({
127-
...promptSpanOptions("prompts.list()", "all"),
127+
tracer,
128+
name: "prompts.list()",
129+
icon: "tabler-file-text-ai",
130+
attributes: {
131+
[SemanticInternalAttributes.STYLE_ICON]: "tabler-file-text-ai",
132+
},
128133
onResponseBody: (body, span) => {
129134
span.setAttribute("prompt.count", body.data.length);
130135
},

0 commit comments

Comments
 (0)