diff --git a/.github/workflows/docgen-caller.yml b/.github/workflows/docgen-caller.yml index b1a8b46467..095cd88dac 100644 --- a/.github/workflows/docgen-caller.yml +++ b/.github/workflows/docgen-caller.yml @@ -98,13 +98,17 @@ jobs: ACTOR: ${{ steps.ctx.outputs.actor }} AUTO: ${{ steps.ctx.outputs.auto }} run: | + # One trace id spans the OSS dispatch → the ENT engine run, so the whole flow is + # one OpenObserve trace. The engine mints its own if this is empty. + TRACE_ID=$(openssl rand -hex 16) gh workflow run docgen.yml --repo openobserve/o2-enterprise \ -f source_repo=openobserve \ -f pr_number="$PR" \ -f dry_run="$DRY" \ -f actor="$ACTOR" \ - -f auto="$AUTO" - echo "Dispatched DocGen engine for openobserve PR #$PR (dry_run=$DRY, auto=$AUTO, by @$ACTOR)." + -f auto="$AUTO" \ + -f o2_trace_id="$TRACE_ID" + echo "Dispatched DocGen engine for openobserve PR #$PR (dry_run=$DRY, auto=$AUTO, by @$ACTOR, trace=$TRACE_ID)." - name: Acknowledge on the source PR # success() => only ack if the dispatch actually succeeded (don't mislead the author if diff --git a/.github/workflows/e2e-council-caller.yml b/.github/workflows/e2e-council-caller.yml index 70bea300eb..8b66393e92 100644 --- a/.github/workflows/e2e-council-caller.yml +++ b/.github/workflows/e2e-council-caller.yml @@ -124,14 +124,18 @@ jobs: ACTOR: ${{ steps.ctx.outputs.actor }} HINT: ${{ steps.ctx.outputs.hint }} run: | + # One trace id spans the OSS dispatch → the ENT engine run, so the whole flow is + # one OpenObserve trace. The engine mints its own if this is empty. + TRACE_ID=$(openssl rand -hex 16) gh workflow run e2e-council.yml --repo openobserve/o2-enterprise \ -f source_repo=openobserve \ -f pr_number="$PR" \ -f dry_run="$DRY" \ -f force_overwrite="$FORCE" \ -f feature_hint="$HINT" \ - -f actor="$ACTOR" - echo "Dispatched E2E Council engine for openobserve PR #$PR (dry_run=$DRY, force=$FORCE, by @$ACTOR)." + -f actor="$ACTOR" \ + -f o2_trace_id="$TRACE_ID" + echo "Dispatched E2E Council engine for openobserve PR #$PR (dry_run=$DRY, force=$FORCE, by @$ACTOR, trace=$TRACE_ID)." - name: Acknowledge on the source PR # success() => only ack if the dispatch actually succeeded (don't mislead the author if the diff --git a/.github/workflows/test-assist-caller.yml b/.github/workflows/test-assist-caller.yml index 915cabd9bb..a9b3b73f7b 100644 --- a/.github/workflows/test-assist-caller.yml +++ b/.github/workflows/test-assist-caller.yml @@ -106,13 +106,17 @@ jobs: WRITE: ${{ steps.ctx.outputs.write }} ACTOR: ${{ steps.ctx.outputs.actor }} run: | + # One trace id spans the OSS dispatch → the ENT engine run, so the whole flow is + # one OpenObserve trace. The engine mints its own if this is empty. + TRACE_ID=$(openssl rand -hex 16) gh workflow run test-assist.yml --repo openobserve/o2-enterprise \ -f source_repo=openobserve \ -f issue_number="$ISSUE" \ -f fixture_mode="$FIXTURE" \ -f write_mode="$WRITE" \ - -f actor="$ACTOR" - echo "Dispatched Test-Assist engine for openobserve issue #$ISSUE (fixture=$FIXTURE, write=$WRITE, by @$ACTOR)." + -f actor="$ACTOR" \ + -f o2_trace_id="$TRACE_ID" + echo "Dispatched Test-Assist engine for openobserve issue #$ISSUE (fixture=$FIXTURE, write=$WRITE, by @$ACTOR, trace=$TRACE_ID)." - name: Acknowledge on the source issue # success() => only ack if the dispatch actually succeeded (don't mislead the commenter if