samplernames.go 1.3 KB

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