Skip to content

Conversation

@ge0Aja
Copy link
Contributor

@ge0Aja ge0Aja commented Jan 19, 2026

What does this PR do?

Motivation

Testing Guidelines

Additional Notes

Types of changes

  • Bug fix
  • 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)
  • This PR passes the unit tests
  • This PR passes the installation tests (ask a Datadog member to run the tests)

extract_ddtags_from_message checks for a service tag override using `if "service:" in` which returns true if there's a tag key that ends with `service`, eg `mail_send_service:production`.

This causes the lambda to enter the conditional to extract the tag to a first class datadog tag, but the enclosed logic includes a non-defaulted generator which checks for `startswith("service:")`. Since this second check does _not_ match the example, the generator has no elements, and the call to `next` causes the lambda to crash. 

This change swaps the check to use the same split/startswith functionality that's used inside the conditional.
@ge0Aja ge0Aja requested a review from a team as a code owner January 19, 2026 15:26
@ge0Aja ge0Aja mentioned this pull request Jan 19, 2026
13 tasks
@github-actions github-actions bot added the aws label Jan 19, 2026
@ge0Aja ge0Aja merged commit b284f73 into master Jan 19, 2026
11 checks passed
@ge0Aja ge0Aja deleted the patch-1 branch January 19, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants