Skip to content
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

feat: Set dd_cdk_construct version tag on state machine #339

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

lym953
Copy link
Contributor

@lym953 lym953 commented Nov 22, 2024

What does this PR do?

When instrumenting a state machine, set a tag like dd_cdk_construct:1.19.0, similar to the practice for Lambda in CDK and for Step Functions in CI (dd_sls_ci tag) and Serverless Plugin (dd_sls_plugin tag).

Motivation

Testing Guidelines

  1. Passed the touched jest test
  2. Updated the snapshots in snapshot tests

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

@lym953 lym953 requested a review from a team as a code owner November 22, 2024 20:37
@@ -12,6 +12,8 @@ import * as sfn from "aws-cdk-lib/aws-stepfunctions";
import log from "loglevel";
import { TagKeys, DatadogLambdaProps, DatadogStepFunctionsProps } from "./index";

const versionJson = require("../version.json");

Choose a reason for hiding this comment

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

🟠 Code Quality Violation

Require statement not part of import statement. (...read more)

Use ESM instead of CommonJS imports.

View in Datadog  Leave us feedback  Documentation

Copy link

@avedmala avedmala left a comment

Choose a reason for hiding this comment

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

LGTM

@lym953 lym953 force-pushed the yiming.luo/step-function-support-8 branch 3 times, most recently from 6e22a20 to e190c49 Compare November 26, 2024 18:11
Base automatically changed from yiming.luo/step-function-support-8 to main November 26, 2024 18:20
@lym953 lym953 force-pushed the yiming.luo/step-function-support-9 branch from a5dca55 to df9fb18 Compare November 26, 2024 18:51
@lym953
Copy link
Contributor Author

lym953 commented Nov 26, 2024

/merge

@dd-devflow
Copy link

dd-devflow bot commented Nov 26, 2024

Devflow running: /merge

View all feedbacks in Devflow UI.


2024-11-26 18:51:46 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 8m.

@dd-mergequeue dd-mergequeue bot merged commit 914c444 into main Nov 26, 2024
13 checks passed
@dd-mergequeue dd-mergequeue bot deleted the yiming.luo/step-function-support-9 branch November 26, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants