internal

package
v0.0.0-...-4a11b79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package internal is supporting code used by server.go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL