Skip to content

Tag Nexus pre-dispatch failure logs - #11664

Merged
stephanos merged 7 commits into
mainfrom
stephanos/nexus-obs-predispatch-logs
Aug 20, 2026
Merged

Tag Nexus pre-dispatch failure logs#11664
stephanos merged 7 commits into
mainfrom
stephanos/nexus-obs-predispatch-logs

Conversation

@stephanos

@stephanos stephanos commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What changed

Adds logs tags for failures on the Nexus frontend path.

Why

Have more details to correlate issues with requests.

stephanos and others added 7 commits August 19, 2026 15:32
Failures on the frontend path before namespace and endpoint resolution
logged tag.Error alone, so an unknown endpoint ID, an invalid endpoint
target, or a malformed URL produced a log line naming neither the
endpoint nor the namespace involved.

INC-1537 is the case this matters for: callers saw only
"handler error (NOT_FOUND)" / "invalid endpoint target", and the server
side recorded a log line with no endpoint in it, so blast radius had to
be judged by reading source rather than from signals.

Add the endpoint ID, endpoint name, target namespace ID, namespace, and
task queue to these logs where each is known, and log the previously
silent unsupported-target-type branch.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
nc.endpointID = entry.Id
return nc, true
default:
logger.Error("unsupported Nexus endpoint target type", tag.NewStringTag("target-type", fmt.Sprintf("%T", v)))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

net new

}

nc, ok := h.nexusContextFromEndpoint(endpointEntry, w, r)
logger = log.With(logger, tag.Endpoint(endpointEntry.Endpoint.GetSpec().GetName()))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enriching them as we go seemed better than adding the tags to every call again and again

@stephanos
stephanos marked this pull request as ready for review August 19, 2026 23:00
@stephanos
stephanos requested a review from a team August 19, 2026 23:00
@stephanos
stephanos requested review from a team as code owners August 19, 2026 23:00
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error after 3m 0s —— View job


I'll analyze this and get back to you.

@stephanos stephanos added the reliability-2026 Reliability related changes label Aug 19, 2026
@stephanos
stephanos enabled auto-merge (squash) August 19, 2026 23:12
@stephanos
stephanos requested a review from yiminc August 19, 2026 23:31
@stephanos
stephanos merged commit b1d6efc into main Aug 20, 2026
58 of 59 checks passed
@stephanos
stephanos deleted the stephanos/nexus-obs-predispatch-logs branch August 20, 2026 00:27
davidporter-id-au pushed a commit to davidporter-id-au/temporal that referenced this pull request Aug 24, 2026
## What changed

Adds logs tags for failures on the Nexus frontend path.

## Why

Have more details to correlate issues with requests.

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reliability-2026 Reliability related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants