Back to

Package internal

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


Package internal is supporting code used by server.go.


func EnableOpenCensusTracing

func EnableOpenCensusTracing()

EnableOpenCensusTracing installs OpenCensus as a tracing backend for LUCI packages.

func Sampler

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier