Conversation
AAraKKe
force-pushed
the
aarakke/AI-6486-dispatcher-log-link
branch
from
September 17, 2026 14:19
dc3eab4 to
f373c89
Compare
evalya-impact-summaryevalya impact analysis |
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 2 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed 🔄 Datadog retried 2 tests - 2 passed on retry 🎯 Code Coverage (details) Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 3574c74 | Docs | View more details | Give us feedback! |
AAraKKe
force-pushed
the
aarakke/AI-6486-dispatcher-log-link
branch
from
September 17, 2026 14:24
f373c89 to
e39a4b6
Compare
Contributor
❌ Dispatcher tests · failed
Caution Dispatcher tests failed. See the failures below.
Batches
❌ FailuresDispatcher finished on ed6d4ff — GitHub Run.
|
AAraKKe
force-pushed
the
aarakke/AI-6486-dispatcher-log-link
branch
from
September 17, 2026 14:27
e39a4b6 to
3574c74
Compare
Contributor
Validation ReportAll 21 validations passed. Show details
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a
Dispatcher Logslink beside the existingGitHub Runlink in the footer of every Dispatcher PR report (running, finished, compact, minimal, and shutdown reports, plus the run summary derived from them). The link opens the Datadog Log Explorer in Org2 onhttps://app.datadoghq.com/logsand selects only the logs of the current Dispatcher workflow run, correlated on the sameci.pipeline.idrun id (GITHUB_RUN_ID) thatci_attributes()already puts on every structured Dispatcher log, scoped withservice:ddev source:dispatcher @ci.pipeline.id:<GITHUB_RUN_ID>.The link carries an absolute time window so it stays useful after the viewer's default Log Explorer window moves on: a four-hour lookback (the workflow timeout is 185 minutes) and a five-minute future allowance around the render time, encoded as epoch-millisecond
from_ts/to_tswithlive=false. All query parameters are URL-encoded. No HTTP request or Datadog credentials are involved in building the link; Datadog still enforces Org2 permissions. The link is omitted outside GitHub Actions or wheneverGITHUB_RUN_IDis unavailable. The footer's link separator is now a middle dot instead of the previous em dash.Because the footer now embeds a render-time timestamp, the reporter renders each report and all of its fallback tiers from a single shared clock instant, so tiers rendered from the same snapshot still compare equal and the too-long ladder keeps skipping duplicate bodies instead of wasting requests.
Jira: https://datadoghq.atlassian.net/browse/AI-6486
Motivation
When a Dispatcher PR report shows a problem, the reader currently has to search Datadog manually to find the run's structured logs. A footer link straight to the exact run's logs makes that one click, and the run-scoped query and absolute window keep it accurate days later.
Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged