Created
July 11, 2016 17:49
-
-
Save bg451/d7ce747cdfaa3a98be9189256bb154c8 to your computer and use it in GitHub Desktop.
This file contains 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
func homeHandler(w http.ResponseWriter, r *http.Request) { | |
span := opentracing.StartSpan("/home") // Start a span using the global, in this case noop, tracer | |
defer span.Finish() | |
// ... the rest of the function | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment