Skip to content

[w3c] Re-organize Trace Context extraction #432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions src/trace/constants.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
export enum SampleMode {
USER_REJECT = -1,
AUTO_REJECT = 0,
AUTO_KEEP = 1,
USER_KEEP = 2,
}
export enum Source {
Xray = "xray",
Event = "event",
DDTrace = "ddtrace",
}

export const traceIDHeader = "x-datadog-trace-id";
export const parentIDHeader = "x-datadog-parent-id";
export const samplingPriorityHeader = "x-datadog-sampling-priority";
export const xraySubsegmentName = "datadog-metadata";
export const xraySubsegmentKey = "trace";
export const xrayBaggageSubsegmentKey = "root_span_metadata";
export const xrayLambdaFunctionTagsKey = "lambda_function_tags";
export const xraySubsegmentNamespace = "datadog";
export const xrayTraceEnvVar = "_X_AMZN_TRACE_ID";
export const awsXrayDaemonAddressEnvVar = "AWS_XRAY_DAEMON_ADDRESS";
export const ddtraceVersion = "X.X.X";
export const apiGatewayEventV2 = "2.0";
export const parentSpanFinishTimeHeader = "x-datadog-parent-span-finish-time";
export const authorizingRequestIdHeader = "x-datadog-authorizing-requestid";

export const DD_SERVICE_ENV_VAR = "DD_SERVICE";
Loading