Created
February 9, 2017 02:22
-
-
Save codefromthecrypt/4574ec38af4122a24da7c0058328cb30 to your computer and use it in GitHub Desktop.
normal pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HttpServletRequest httpRequest = (HttpServletRequest) request; | |
TraceContextOrSamplingFlags contextOrFlags = contextExtractor.extract(httpRequest); | |
Span span = contextOrFlags.context() != null | |
? tracer.joinSpan(contextOrFlags.context()) | |
: tracer.newTrace(contextOrFlags.samplingFlags()); |
Author
codefromthecrypt
commented
Feb 9, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment