Skip to content

feat: add support for extracting DSM context in event bridge#790

Open
jeastham1993 wants to merge 1 commit into
mainfrom
feat/add-eventbridge-dsm-extraction
Open

feat: add support for extracting DSM context in event bridge#790
jeastham1993 wants to merge 1 commit into
mainfrom
feat/add-eventbridge-dsm-extraction

Conversation

@jeastham1993

@jeastham1993 jeastham1993 commented Jun 18, 2026

Copy link
Copy Markdown

What does this PR do?

Extends the support for DSM context extraction to EventBridge and EventBridge -> SQS

Motivation

Adding support for all serverless messaging technologies with DSM.

Testing Guidelines

Manually deployed NodeJS tracer layer and verified functionality works against a sample app.

Additional Notes

Types of Changes

  • Bug fix
  • [ X ] New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Check all that apply

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog
  • This PR passes the integration tests (ask a Datadog member to run the tests)

@jeastham1993 jeastham1993 requested review from a team as code owners June 18, 2026 07:59
@jeastham1993 jeastham1993 requested a review from duncanista June 18, 2026 07:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b4a132b1f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

// detail-type as the topic, matching the produce-side convention.
if (this.config.dataStreamsEnabled) {
try {
this.tracerWrapper.setConsumeCheckpoint(headers, "eventbridge", event?.["detail-type"]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the EventBridge bus name for DSM checkpoints

For EventBridge records that carry DSM context from Datadog-instrumented producers, the producer checkpoint is keyed by the event bus name (the injected _datadog payload carries it as x-datadog-resource-name). This code instead consumes on the event's detail-type, so a message on bus orders with detail-type UserSignUp records the consume checkpoint under a different topic and the pathway will not stitch to the producer. Please use the producer's resource/bus name from the carrier rather than detail-type.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant