File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/core/src/v3/apiClient Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -973,7 +973,6 @@ export class ApiClient {
973
973
"Content-Type" : "application/json" ,
974
974
Authorization : `Bearer ${ this . accessToken } ` ,
975
975
"trigger-version" : VERSION ,
976
- "x-trigger-engine-version" : "V2" ,
977
976
...Object . entries ( additionalHeaders ?? { } ) . reduce (
978
977
( acc , [ key , value ] ) => {
979
978
if ( value !== undefined ) {
@@ -989,6 +988,8 @@ export class ApiClient {
989
988
// Only inject the context if we are inside a task
990
989
if ( taskContext . isInsideTask ) {
991
990
headers [ "x-trigger-worker" ] = "true" ;
991
+ // Only pass the engine version if we are inside a task
992
+ headers [ "x-trigger-engine-version" ] = "V2" ;
992
993
993
994
if ( spanParentAsLink ) {
994
995
headers [ "x-trigger-span-parent-as-link" ] = "1" ;
You can’t perform that action at this time.
0 commit comments