Skip to content

Commit 38ed790

Browse files
committed
Merge branch 'main' into joey/fix-request-id-bug
2 parents fc6faac + 4d8ee53 commit 38ed790

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1295
-291
lines changed

datadog_lambda/constants.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,15 @@ class XrayDaemon(object):
4242
XRAY_TRACE_ID_HEADER_NAME = "_X_AMZN_TRACE_ID"
4343
XRAY_DAEMON_ADDRESS = "AWS_XRAY_DAEMON_ADDRESS"
4444
FUNCTION_NAME_HEADER_NAME = "AWS_LAMBDA_FUNCTION_NAME"
45+
46+
47+
class Headers(object):
48+
Parent_Span_Finish_Time = "x-datadog-parent-span-finish-time"
49+
50+
# For one request from the client, the event.requestContext.requestIds in the authorizer lambda
51+
# invocation and the main function invocation are IDENTICAL. Therefore we can use it to tell
52+
# whether current invocation is the actual original authorizing request or a cached request.
53+
Authorizing_Request_Id = "x-datadog-authorizing-requestid"
54+
55+
# injected by the HTTPPropagator.inject but no use
56+
TAGS_HEADER_TO_DELETE = "x-datadog-tags"

0 commit comments

Comments
 (0)