luci: go.chromium.org/luci/server/internal Index | Files

package internal

import "go.chromium.org/luci/server/internal"

Package internal is supporting code used by server.go.

Index

Package Files

doc.go pprof.go trace.go tracesampler.go

func EnableOpenCensusTracing Uses

func EnableOpenCensusTracing()

EnableOpenCensusTracing installs OpenCensus as a tracing backend for LUCI packages.

func Sampler Uses

func Sampler(spec string) (trace.Sampler, error)

Sampler constructs an object that decides how often to sample traces.

The spec is a string in one of the forms:

* `X%` - to sample approximately X percent of requests.
* `Xqps` - to produce approximately X samples per second.

Returns an error if the spec can't be parsed.

Package internal imports 18 packages (graph) and is imported by 2 packages. Updated 2020-10-01. Refresh now. Tools for package owners.