(span-postprocess context span)
(span-resolver context servlet-class)
This is an AWS-specific span resolver for use with the
This resolves any possible Span/Segment in the following order: 1. Pedestal tracing value in the Context 2. AWS X-Ray Servlet values (if the Servlet API class is detected) 3. AWS X-Ray Headers 4. Nothing found - a new span/segment is created.
This function returns an XRay Recorder. You can assign this tracer to be the default in Pedestal Log by either: * Setting the JVM property io.pedestal.log.defaultTracer to ‘io.pedestal.log.aws.xray/tracer’ * Setting the PEDESTAL_TRACER environment variable to ‘io.pedestal.log.aws.xray/tracer’
If you’re using an OpenTracing adaptor for XRay, you can register the tracer directly with: