Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interceptor Redesign/Rewrite and OpenTelemetry Implementation #610

Merged
merged 14 commits into from
Nov 15, 2021

Conversation

cretz
Copy link
Member

@cretz cretz commented Nov 1, 2021

What was changed

See the proposal at temporalio/proposals#45.

  • All existing interceptor code was remove (in fact, entire interceptors package was removed)
  • New interceptor package added with support for client, workflow, and activity interception on par with other SDKs
  • OpenTelemetry support on top of new interceptors
  • OpenTracing support on top of new interceptors
  • Various tests and utilities for supporting new interceptors

The review looks larger than it is due to Go boilerplate.

Why?

Go's existing interceptor design was limited and didn't support tracing, activities, clients, etc.

Checklist

  1. Closes Add ActivityInterceptor #265
  2. Closes Add open tracing support #526
  3. Closes Redesign interceptors to match the Java / Node.js capabilities #529
  4. Closes Support OpenTelemetry tracing #602
  5. There is a spot or two in the review that I'll point out that may warrant discussion
  6. Document Go SDK Interceptors documentation#714 will track public interceptor documentation
  7. Interceptor Samples samples-go#150

Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

Approving even though I did not read this through.

Copy link
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

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

🚄 Awesome! This cleans up a lot of stuff, and users are going to appreciate the flexibility.

@meiliang86
Copy link
Contributor

@cretz Thanks for working with us! I'll take a look at this PR and follow up with you in case there's any further change needed.

Copy link
Contributor

@meiliang86 meiliang86 left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning this up, Chad!

@cretz
Copy link
Member Author

cretz commented Nov 11, 2021

Marking outstanding conversations sans response since yesterday as "resolved"

# Conflicts:
#	test/integration_test.go
#	test/workflow_test.go
@cretz cretz merged commit 059ec4f into temporalio:master Nov 15, 2021
@cretz cretz deleted the interceptors branch November 15, 2021 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants