Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Better types for the traceContext
  • Loading branch information
ericallam committed Aug 3, 2025
commit a720f37471b2e4624a575350729cae23cce4f2e6
2 changes: 1 addition & 1 deletion apps/webapp/app/runEngine/services/triggerTask.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class RunEngineTriggerTaskService {
traceContext: Record<string, unknown>,
parentRunTraceContext: unknown,
parentSpanId: string | undefined
): Record<string, unknown> {
): TriggerTraceContext {
if (!parentRunTraceContext) {
return traceContext;
}
Expand Down
2 changes: 1 addition & 1 deletion internal-packages/run-engine/src/engine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export class RunEngine {
payload,
payloadType,
context,
traceContext: traceContext as any,
traceContext,
traceId,
spanId,
parentSpanId,
Expand Down
3 changes: 2 additions & 1 deletion internal-packages/run-engine/src/engine/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
MachinePresetName,
RetryOptions,
RunChainState,
TriggerTraceContext,
} from "@trigger.dev/core/v3";
import { PrismaClient, PrismaReplicaClient } from "@trigger.dev/database";
import { Worker, type WorkerConcurrencyOptions } from "@trigger.dev/redis-worker";
Expand Down Expand Up @@ -89,7 +90,7 @@ export type TriggerParams = {
payload: string;
payloadType: string;
context: any;
traceContext: Record<string, unknown>;
traceContext: TriggerTraceContext;
traceId: string;
spanId: string;
parentSpanId?: string;
Expand Down
Loading