forked from DataDog/datadog-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
26 lines (20 loc) · 716 Bytes
/
constants.py
File metadata and controls
26 lines (20 loc) · 716 Bytes
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
# 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 2019 Datadog, Inc.
# Datadog trace sampling priority
class SamplingPriority(object):
USER_REJECT = -1
AUTO_REJECT = 0
AUTO_KEEP = 1
USER_KEEP = 2
# Datadog trace headers
class TraceHeader(object):
TRACE_ID = 'x-datadog-trace-id'
PARENT_ID = 'x-datadog-parent-id'
SAMPLING_PRIORITY = 'x-datadog-sampling-priority'
# X-Ray subsegment to save Datadog trace metadata
class XraySubsegment(object):
NAME = 'datadog-metadata'
KEY = 'trace'
NAMESPACE = 'datadog'