-
Notifications
You must be signed in to change notification settings - Fork 415
/
samplernames.go
37 lines (34 loc) · 1.4 KB
/
samplernames.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016 Datadog, Inc.
package samplernames
// SamplerName specifies the name of a sampler which was
// responsible for a certain sampling decision.
type SamplerName int8
const (
// Unknown specifies that the span was sampled
// but, the tracer was unable to identify the sampler.
// No sampling decision maker will be propagated.
Unknown SamplerName = -1
// Default specifies that the span was sampled without any sampler.
Default SamplerName = 0
// AgentRate specifies that the span was sampled
// with a rate calculated by the trace agent.
AgentRate SamplerName = 1
// RemoteRate specifies that the span was sampled
// with a dynamically calculated remote rate.
RemoteRate SamplerName = 2
// RuleRate specifies that the span was sampled by the RuleSampler.
RuleRate SamplerName = 3
// Manual specifies that the span was sampled manually by user.
Manual SamplerName = 4
// AppSec specifies that the span was sampled by AppSec.
AppSec SamplerName = 5
// RemoteUserRate specifies that the span was sampled
// with a user specified remote rate.
RemoteUserRate SamplerName = 6
// SingleSpan specifies that the span was sampled by single
// span sampling rules.
SingleSpan SamplerName = 8
)