-
Notifications
You must be signed in to change notification settings - Fork 36
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
Step Functions Trace Merging Support #588
Conversation
@@ -3,23 +3,57 @@ import { SampleMode, TraceSource } from "./trace-context-service"; | |||
import { SpanContextWrapper } from "./span-context-wrapper"; | |||
import { Sha256 } from "@aws-crypto/sha256-js"; | |||
|
|||
export interface StepFunctionContext { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since the context is also used as tags
here code line can we clarify why the change of the tags in the PR description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i think you explained it by "Also fixed the trigger tags parsing for our use case!" Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does this PR do?
Allows us to do multi-level trace merging between Step Functions and Node Lambda functions
multi-level trace merging
Added logic to extract trace context from
_datadog
for Step Functions cases where...x-datadog-trace-id
andx-datadog-tags
but we need to compute the parentID using parent SFN context objectRootExecutionId
and the parent SFN context object_datadog
and we instead figure out traceID and parentID from the parent SFN context objectlive testing
Lambda1 --> SFN --> Lambda2
tracea. Lambda1 is actually in Python, cool how we can mix and match runtimes
SFN --> Lambda
tracetrigger tag improvements
Also fixed the trigger tags parsing for our use case!

Motivation
Testing Guidelines
Additional Notes
Types of Changes
Check all that apply