Skip to content

Commit d67023a

Browse files
authored
Fixed the missing icons in trigger spans (#1506)
1 parent d9bfe55 commit d67023a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.changeset/popular-mails-sell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
---
4+
5+
Fixed the missing icons in trigger spans

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,9 @@ export async function batchTriggerByIdAndWait<TTask extends AnyTask>(
817817
},
818818
{
819819
kind: SpanKind.PRODUCER,
820+
attributes: {
821+
[SemanticInternalAttributes.STYLE_ICON]: "trigger",
822+
},
820823
}
821824
);
822825
}
@@ -1146,6 +1149,9 @@ export async function batchTriggerAndWaitTasks<TTasks extends readonly AnyTask[]
11461149
},
11471150
{
11481151
kind: SpanKind.PRODUCER,
1152+
attributes: {
1153+
[SemanticInternalAttributes.STYLE_ICON]: "trigger",
1154+
},
11491155
}
11501156
);
11511157
}
@@ -1351,6 +1357,7 @@ async function triggerAndWait_internal<TIdentifier extends string, TPayload, TOu
13511357
{
13521358
kind: SpanKind.PRODUCER,
13531359
attributes: {
1360+
[SemanticInternalAttributes.STYLE_ICON]: "trigger",
13541361
...accessoryAttributes({
13551362
items: [
13561363
{
@@ -1445,6 +1452,7 @@ async function batchTriggerAndWait_internal<TIdentifier extends string, TPayload
14451452
{
14461453
kind: SpanKind.PRODUCER,
14471454
attributes: {
1455+
[SemanticInternalAttributes.STYLE_ICON]: "trigger",
14481456
...accessoryAttributes({
14491457
items: [
14501458
{

0 commit comments

Comments
 (0)