internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "opencensus-go-v0.1.0"

UserAgent is the user agent to be added to the outgoing requests from the exporters.

Variables

View Source
var Trace interface{}

Trace allows internal access to some trace functionality. TODO(#412): remove this

Functions

func Sanitize

func Sanitize(s string) string

Sanitize returns a string that is trunacated to 100 characters if it's too long, and replaces non-alphanumeric characters to underscores.

Types

type BucketConfiguration added in v0.3.0

type BucketConfiguration struct {
	Name                 string
	MaxRequestsSucceeded int
	MaxRequestsErrors    int
}

BucketConfiguration stores the number of samples to store for span buckets for successful and failed spans for a particular span name.

type ErrorBucketSummary added in v0.3.0

type ErrorBucketSummary struct {
	ErrorCode int32
	Size      int
}

ErrorBucketSummary is a summary of an error bucket.

type LatencyBucketSummary added in v0.3.0

type LatencyBucketSummary struct {
	MinLatency, MaxLatency time.Duration
	Size                   int
}

LatencyBucketSummary is a summary of a latency bucket.

type PerMethodSummary added in v0.3.0

type PerMethodSummary struct {
	Active         int
	LatencyBuckets []LatencyBucketSummary
	ErrorBuckets   []ErrorBucketSummary
}

PerMethodSummary is a summary of the spans stored for a single span name.

Directories

Path Synopsis
Package readme generates the README.
Package readme generates the README.
Package tagencoding contains the tag encoding used interally by the stats collector.
Package tagencoding contains the tag encoding used interally by the stats collector.

Jump to

Keyboard shortcuts

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