yarpc / yarpc-go

A message passing platform for Go
MIT License
414 stars 103 forks source link

[Tracing Redesign][1/N] Add interceptor interface and tracinginterceptor skeleton #2301

Closed ChenX1993 closed 1 month ago

ChenX1993 commented 1 month ago

This is part of the series PRs to re-design& re-implement the tracing instrumentation in Yarpc-go (TODO: create a Github issue with details). The whole picture of the desired changes can be checked in this demonstration PR: #2296. All PRs will be implemented in a separate branch - dev-tracing-fix before being merged into main dev branch.

The PR is defining the transport interceptor interface and creating the basic tracing interceptor skeleton code to reduce the burden for collaboration and paralleled coding.