Skip to content

Add tracing for standalone activity client calls#2344

Open
kritibehl wants to merge 1 commit into
temporalio:mainfrom
kritibehl:fix-standalone-activity-tracing-2286
Open

Add tracing for standalone activity client calls#2344
kritibehl wants to merge 1 commit into
temporalio:mainfrom
kritibehl:fix-standalone-activity-tracing-2286

Conversation

@kritibehl
Copy link
Copy Markdown
Contributor

What was changed

Implemented ExecuteActivity on tracingClientOutboundInterceptor so standalone activity client calls create a StartActivity span and write tracing context to the header.

Why?

Standalone activity client calls currently bypass the tracing client outbound interceptor because the tracing interceptor does not implement the standalone activity method. This means client-side tracing spans are not created for standalone activity execution.

Checklist

  1. Closes Standalone Activities - tracing interceptor doesn't intercept standalone activities client calls #2286

  2. How was this tested:

  • go test ./interceptor/... -count=1
  • go test ./internal -run TestExecuteActivityHeaderAvailableToInterceptors -count=1
  • go test ./... -count=1
  1. Any docs updates needed?
    No docs updates needed.

@kritibehl kritibehl requested a review from a team as a code owner May 17, 2026 19:52
@Quinn-With-Two-Ns
Copy link
Copy Markdown
Contributor

There is already a PR open for this #2302

@kritibehl
Copy link
Copy Markdown
Contributor Author

Thanks for pointing that out, I missed #2302.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standalone Activities - tracing interceptor doesn't intercept standalone activities client calls

2 participants