Documentation
¶
Index ¶
- Constants
- func ConfiguredCloudExporters(ctx context.Context) (sdktrace.SpanExporter, sdklog.Exporter, sdkmetric.Exporter, bool)
- func MeasuringStreamClientInterceptor() grpc.StreamClientInterceptor
- func MeasuringUnaryClientInterceptor() grpc.UnaryClientInterceptor
- func MeasuringUnaryServerInterceptor() grpc.UnaryServerInterceptor
- func ReexportMetricsFromPB(ctx context.Context, exps []sdkmetric.Exporter, ...) error
- func URLForTrace(ctx context.Context) (url string, msg string, ok bool)
- type LabelFlag
- type Labels
- func (labels *Labels) UnmarshalJSON(dt []byte) error
- func (labels Labels) UserAgent() string
- func (labels Labels) WithAnonymousGitLabels(workdir string) Labels
- func (labels Labels) WithCILabels() Labels
- func (labels Labels) WithCircleCILabels() Labels
- func (labels Labels) WithClientLabels(engineVersion string) Labels
- func (labels Labels) WithEngineLabel(engineName string) Labels
- func (labels Labels) WithGitHubLabels() Labels
- func (labels Labels) WithGitLabLabels() Labels
- func (labels Labels) WithGitLabels(workdir string) Labels
- func (labels Labels) WithHarnessLabels() Labels
- func (labels Labels) WithJenkinsLabels() Labels
- func (labels Labels) WithServerLabels(engineVersion, os, arch string, cacheEnabled bool) Labels
- func (labels Labels) WithVCSLabels(workdir string) Labels
- type SpanHeartbeater
Constants ¶
View Source
const HeartbeatInterval = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
func MeasuringStreamClientInterceptor ¶
func MeasuringStreamClientInterceptor() grpc.StreamClientInterceptor
func MeasuringUnaryClientInterceptor ¶
func MeasuringUnaryClientInterceptor() grpc.UnaryClientInterceptor
func MeasuringUnaryServerInterceptor ¶
func MeasuringUnaryServerInterceptor() grpc.UnaryServerInterceptor
func ReexportMetricsFromPB ¶ added in v0.13.6
func ReexportMetricsFromPB(ctx context.Context, exps []sdkmetric.Exporter, req *colmetricspb.ExportMetricsServiceRequest) error
Types ¶
type Labels ¶
func LoadDefaultLabels ¶
func (*Labels) UnmarshalJSON ¶
func (Labels) WithAnonymousGitLabels ¶
func (Labels) WithCILabels ¶
func (Labels) WithCircleCILabels ¶
func (Labels) WithClientLabels ¶
func (Labels) WithEngineLabel ¶
func (Labels) WithGitHubLabels ¶
func (Labels) WithGitLabLabels ¶
func (Labels) WithGitLabels ¶
func (Labels) WithHarnessLabels ¶ added in v0.14.0
func (Labels) WithJenkinsLabels ¶ added in v0.12.0
func (Labels) WithServerLabels ¶
func (Labels) WithVCSLabels ¶
type SpanHeartbeater ¶
type SpanHeartbeater struct { sdktrace.SpanExporter // contains filtered or unexported fields }
SpanHeartbeater is a SpanExporter that keeps track of live spans and re-exports them periodically to the underlying SpanExporter to indicate that they are indeed still live.
func NewSpanHeartbeater ¶
func NewSpanHeartbeater(exp sdktrace.SpanExporter) *SpanHeartbeater
func (*SpanHeartbeater) ExportSpans ¶
func (p *SpanHeartbeater) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error
Click to show internal directories.
Click to hide internal directories.