Skip to content

Add automatic request header support#726

Closed
tconley1428 wants to merge 1 commit intomasterfrom
header_annotation_generator
Closed

Add automatic request header support#726
tconley1428 wants to merge 1 commit intomasterfrom
header_annotation_generator

Conversation

@tconley1428
Copy link
Contributor

Summary

  • Cherry-picked automatic request header support from temporal-api-go repository (commit d43d11d83b42eb29d2bee12dcad934eabc0166e8)
  • Adds ExtractTemporalRequestHeaders functionality to automatically extract headers from request messages
  • Generates headers based on proto annotations for temporal-namespace and temporal-resource-id

Key Changes

  • cmd/proxygenerator/request_header.go: Header generation code that parses proto annotations
  • cmd/proxygenerator/main.go: Updated to include request header generation in build process
  • proxy/request_header.go: Generated code that extracts headers from various workflow/activity requests
  • proxy/request_header_test.go: Comprehensive test coverage for header extraction functionality

Test plan

  • Verify all existing tests continue to pass
  • Run the proxy generator to ensure no compilation errors
  • Test header extraction for various request types (StartWorkflowExecution, GetWorkflowExecutionHistory, etc.)
  • Validate namespace and resource-id headers are properly extracted
  • Confirm existing metadata is respected and not overwritten

🤖 Generated with Claude Code

@tconley1428 tconley1428 requested review from a team as code owners March 9, 2026 19:16
@tconley1428 tconley1428 closed this Mar 9, 2026
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.

2 participants