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

Add Tracer and AWS X-Ray middlewares. #1004

Merged
merged 1 commit into from Jan 10, 2017

Conversation

Projects
None yet
1 participant
@raphael
Copy link
Member

raphael commented Jan 10, 2017

The Tracer middleware retrieves the trace ID and parent span ID from the
incoming request if present and stores the in the context. The middleware
provides a goa Doer wrapper function that extract the values from the context
and sets them in the outgoing request.

The middleware constructor accepts a percentage as argument which specifies the
sampling value. This value is used when the incoming request does not include
tracing headers to determine whether a new trace ID should be computed and set
in the context.

The xray middleware leverages the values set in the context by the Tracer
middleware to report tracing information to the AWS X-Ray service. The package
also makes it possible to attach further information to the traces such as
annotations and metadata. The middleware also reports errors to the service.

The xray package also provides a WrapClient function for wrapping an instance
of http.Client to trace requests made to external services.

@raphael raphael force-pushed the v1.add_tracing branch from 6235cc7 to 3fccd2c Jan 10, 2017

Add Tracer and AWS X-Ray middlewares.
The Tracer middleware retrieves the trace ID and parent span ID from the
incoming request if present and stores the in the context. The middleware
provides a goa Doer wrapper function that extract the values from the context
and sets them in the outgoing request.

The middleware constructor accepts a percentage as argument which specifies the
sampling value. This value is used when the incoming request does *not* include
tracing headers to determine whether a new trace ID should be computed and set
in the context.

The xray middleware leverages the values set in the context by the Tracer
middleware to report tracing information to the AWS X-Ray service. The package
also makes it possible to attach further information to the traces such as
annotations and metadata. The middleware also reports errors to the service.

The xray package also provides a WrapClient function for wrapping an instance
of http.Client to trace requests made to external services.

@raphael raphael force-pushed the v1.add_tracing branch from 3fccd2c to 76bb655 Jan 10, 2017

@raphael raphael merged commit b76da45 into v1 Jan 10, 2017

3 checks passed

continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment