Ejemplo n.º 1
0
// URLToTraceProfile constructs a URL to a trace's JSON profile.
func (r *Router) URLToTraceProfile(trace appdash.ID) (*url.URL, error) {
	return r.r.Get(TraceProfileRoute).URL("Trace", trace.String())
}
Ejemplo n.º 2
0
// URLToTraceSpanProfile constructs a URL to a sub-span's JSON profile in a
// trace.
func (r *Router) URLToTraceSpanProfile(trace, span appdash.ID) (*url.URL, error) {
	return r.r.Get(TraceSpanProfileRoute).URL("Trace", trace.String(), "Span", span.String())
}
Ejemplo n.º 3
0
// URLToTrace constructs a URL to a given trace by ID.
func (r *Router) URLToTrace(id appdash.ID) (*url.URL, error) {
	return r.r.Get(TraceRoute).URL("Trace", id.String())
}