Skip to content

Instantly share code, notes, and snippets.

@BeattieM
Created August 15, 2018 20:56
Show Gist options
  • Save BeattieM/5bc4d62796cd1f4dbc9e148f56c97022 to your computer and use it in GitHub Desktop.
Save BeattieM/5bc4d62796cd1f4dbc9e148f56c97022 to your computer and use it in GitHub Desktop.
tracer.Start(tracer.WithAgentAddr(logger.DDAgentAddr()),tracer.WithSampler(tracer.NewRateSampler(0.01)))
defer tracer.Stop()
func FilterCardsHandler(w http.ResponseWriter, r *http.Request) {
span := tracer.StartSpanFromContext(r, "FilterCardsHandler")
defer span.Finish()
}
func CardBuilder(span ddtrace.Span) {
child := tracer.StartSpan("CardBuilder", tracer.ChildOf(span.Context()))
defer span.Finish()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment