go.opencensus.io: go.opencensus.io/internal Index | Files | Directories

package internal

import "go.opencensus.io/internal"

Index

Package Files

internal.go sanitize.go traceinternals.go

Variables

var LocalSpanStoreEnabled bool

LocalSpanStoreEnabled true if the local span store is enabled.

var Trace interface{}

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

var UserAgent = fmt.Sprintf("opencensus-go/%s", opencensus.Version())

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

func MonotonicEndTime Uses

func MonotonicEndTime(start time.Time) time.Time

MonotonicEndTime returns the end time at present but offset from start, monotonically.

The monotonic clock is used in subtractions hence the duration since start added back to start gives end as a monotonic time. See https://golang.org/pkg/time/#hdr-Monotonic_Clocks

func Sanitize Uses

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.

type BucketConfiguration Uses

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 Uses

type ErrorBucketSummary struct {
    ErrorCode int32
    Size      int
}

ErrorBucketSummary is a summary of an error bucket.

type LatencyBucketSummary Uses

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

LatencyBucketSummary is a summary of a latency bucket.

type PerMethodSummary Uses

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

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

Directories

PathSynopsis
checkCommand version checks that the version string matches the latest Git tag.
readmePackage readme generates the README.
tagencodingPackage tagencoding contains the tag encoding used interally by the stats collector.
testpbPackage testpb is a generated protocol buffer package.

Package internal imports 5 packages (graph) and is imported by 2 packages. Updated 2019-06-14. Refresh now. Tools for package owners.