Versions in this module Expand all Collapse all v0 v0.0.3 Sep 17, 2023 Changes in this version + const AssetsDirEnvKey + func Categorize(r *http.Request) string + func Middleware(constructor func(context.Context, string) (context.Context, trc.Trace), ...) func(http.Handler) http.Handler + func SetSourceLinkFunc(f SourceLinkFunc) + func SourceLinkVSCode(fileline string) template.URL + type HTTPClient interface + Do func(*http.Request) (*http.Response, error) + type SearchClient struct + func NewSearchClient(client HTTPClient, uri string) *SearchClient + func (c *SearchClient) Search(ctx context.Context, req *trc.SearchRequest) (_ *trc.SearchResponse, err error) + type SearchData struct + Problems []error + Request trc.SearchRequest + Response trc.SearchResponse + type Searcher trc.Searcher + type SourceLinkFunc func(fileline string) template.URL + type StreamClient struct + HTTPClient HTTPClient + OnRead func(ctx context.Context, eventType string, eventData []byte) + RetryInterval time.Duration + SendBuffer int + StatsInterval time.Duration + URI string + func NewStreamClient(uri string) *StreamClient + func (c *StreamClient) Stream(ctx context.Context, f trc.Filter, ch chan<- trc.Trace) (err error) + type Streamer interface + Stream func(ctx context.Context, f trc.Filter, ch chan<- trc.Trace) (trc.StreamStats, error) + StreamStats func(ctx context.Context, ch chan<- trc.Trace) (trc.StreamStats, error) + type TraceServer struct + Collector *trc.Collector + Searcher Searcher + Streamer Streamer + func NewTraceServer(c *trc.Collector) *TraceServer + func (s *TraceServer) ServeHTTP(w http.ResponseWriter, r *http.Request)