-
Notifications
You must be signed in to change notification settings - Fork 23
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 Function] 9. Update README #166
Conversation
71dc5f5
to
df0e5f6
Compare
3dc6515
to
c9b1d3f
Compare
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.
Left some suggestions to make the Configuration consistent.
serverless/README.md
Outdated
- Installing and configuring the Datadog Lambda Library and Lambda Extension for your [Python][1], [Node.js][2], [.NET][9], and [Java][10] Lambda functions. | ||
- Enabling the collection of enhanced Lambda metrics and custom metrics from your Lambda functions. | ||
- Managing subscriptions from the Datadog Forwarder to your Lambda function log groups, if desired. | ||
- For Lambda functions, this macro: |
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.
- For Lambda functions, this macro: | |
For Lambda functions, this macro: |
serverless/README.md
Outdated
- For Lambda functions, this macro: | ||
- Installs and configures the Datadog Lambda Library and Lambda Extension for your [Python][1], [Node.js][2], [.NET][9], and [Java][10] Lambda functions. | ||
- Enables the collection of enhanced Lambda metrics and custom metrics from your Lambda functions. | ||
- Managing subscriptions from the Datadog Forwarder to your Lambda function log groups, if desired. |
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.
- Managing subscriptions from the Datadog Forwarder to your Lambda function log groups, if desired. | |
- Manages subscriptions from the Datadog Forwarder to your Lambda function log groups, if desired. |
serverless/README.md
Outdated
- Installs and configures the Datadog Lambda Library and Lambda Extension for your [Python][1], [Node.js][2], [.NET][9], and [Java][10] Lambda functions. | ||
- Enables the collection of enhanced Lambda metrics and custom metrics from your Lambda functions. | ||
- Managing subscriptions from the Datadog Forwarder to your Lambda function log groups, if desired. | ||
- For Step Functions, this macro: |
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.
- For Step Functions, this macro: | |
For Step Functions, this macro: |
serverless/README.md
Outdated
- Managing subscriptions from the Datadog Forwarder to your Lambda function log groups, if desired. | ||
- For Step Functions, this macro: | ||
- Creates a log group and subscribes the Datadog forwarder Lambda to it. | ||
- Adds tags to enable tracing and Unified Service Tagging |
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.
- Adds tags to enable tracing and Unified Service Tagging | |
- Adds tags to enable tracing and Unified Service Tagging. |
serverless/README.md
Outdated
@@ -41,7 +46,7 @@ aws cloudformation create-stack \ | |||
|
|||
## Usage with AWS SAM | |||
|
|||
To deploy your serverless application with SAM, add the Datadog Serverless CloudFormation macro under the `Transform` section in your `template.yml` file, after the required SAM transform. Also add a `DDGitData` parameter and pass it to the macro to enable Datadog Source Code Integration: | |||
To deploy your serverless application with SAM, add the Datadog Serverless CloudFormation macro under the `Transform` section in your `template.yml` file, after the required SAM transform. Also add a `DDGitData` parameter and pass it to the macro to enable Datadog Source Code Integration. Here is an example for instrumenting your Lambda functions and Step Functions: |
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.
To deploy your serverless application with SAM, add the Datadog Serverless CloudFormation macro under the `Transform` section in your `template.yml` file, after the required SAM transform. Also add a `DDGitData` parameter and pass it to the macro to enable Datadog Source Code Integration. Here is an example for instrumenting your Lambda functions and Step Functions: | |
To deploy your serverless application with SAM, add the Datadog Serverless CloudFormation macro under the `Transform` section in your `template.yml` file, after the required SAM transform. Add a `DDGitData` parameter passed to the macro to enable Datadog Source Code Integration. See the following example on instrumenting your Lambda functions and Step Functions: |
serverless/README.md
Outdated
| `tags` | A comma separated list of key:value pairs as a single string. When set along with `extensionLayerVersion`, a `DD_TAGS` environment variable is added on all Lambda functions with the provided value. When set along with `forwarderArn`, the macro parses the string and sets each key:value pair as a tag on all Lambda functions. The macro also sets these tags to all the State Machines. | | ||
| `logLevel` | Sets the log level. Set to `DEBUG` for extended logging. | | ||
| `captureLambdaPayload` | Automatically tags the function execution span with request and response payloads, so they can be displayed in the APM application. | | ||
| `enableColdStartTracing` | Set to `false` to disable Cold Start Tracing. Used in NodeJS and Python. Defaults to `true`. | |
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.
| `enableColdStartTracing` | Set to `false` to disable Cold Start Tracing. Used in NodeJS and Python. Defaults to `true`. | | |
| `enableColdStartTracing` | Set to `false` to disable Cold Start Tracing. Used in Node.js and Python. Defaults to `true`. | |
serverless/README.md
Outdated
| `logLevel` | Sets the log level. Set to `DEBUG` for extended logging. | | ||
| `captureLambdaPayload` | Automatically tags the function execution span with request and response payloads, so they can be displayed in the APM application. | | ||
| `enableColdStartTracing` | Set to `false` to disable Cold Start Tracing. Used in NodeJS and Python. Defaults to `true`. | | ||
| `coldStartTraceMinDuration` | Sets the minimum duration (in milliseconds) for a module load event to be traced via Cold Start Tracing. Number. Defaults to `3`. | |
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.
Is Number
significant?
| `coldStartTraceMinDuration` | Sets the minimum duration (in milliseconds) for a module load event to be traced via Cold Start Tracing. Number. Defaults to `3`. | | |
| `coldStartTraceMinDuration` | Sets the minimum duration (in milliseconds) for a module load event to be traced through Cold Start Tracing. Defaults to `3`. | |
serverless/README.md
Outdated
| `captureLambdaPayload` | Automatically tags the function execution span with request and response payloads, so they can be displayed in the APM application. | | ||
| `enableColdStartTracing` | Set to `false` to disable Cold Start Tracing. Used in NodeJS and Python. Defaults to `true`. | | ||
| `coldStartTraceMinDuration` | Sets the minimum duration (in milliseconds) for a module load event to be traced via Cold Start Tracing. Number. Defaults to `3`. | | ||
| `coldStartTraceSkipLibs` | optionally skip creating Cold Start Spans for a comma-separated list of libraries. Useful to limit depth or skip known libraries. Default depends on runtime. | |
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.
| `coldStartTraceSkipLibs` | optionally skip creating Cold Start Spans for a comma-separated list of libraries. Useful to limit depth or skip known libraries. Default depends on runtime. | | |
| `coldStartTraceSkipLibs` | Optionally skip creating Cold Start Spans for a comma-separated list of libraries. Useful to limit depth or skip known libraries. Default depends on runtime. | |
serverless/README.md
Outdated
| `enableColdStartTracing` | Set to `false` to disable Cold Start Tracing. Used in NodeJS and Python. Defaults to `true`. | | ||
| `coldStartTraceMinDuration` | Sets the minimum duration (in milliseconds) for a module load event to be traced via Cold Start Tracing. Number. Defaults to `3`. | | ||
| `coldStartTraceSkipLibs` | optionally skip creating Cold Start Spans for a comma-separated list of libraries. Useful to limit depth or skip known libraries. Default depends on runtime. | | ||
| `enableProfiling` | Enable the Datadog Continuous Profiler with `true`. Supported in Beta for NodeJS and Python. Defaults to `false`. | |
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.
| `enableProfiling` | Enable the Datadog Continuous Profiler with `true`. Supported in Beta for NodeJS and Python. Defaults to `false`. | | |
| `enableProfiling` | Enable the Datadog Continuous Profiler with `true`. Supported in Beta for Node.js and Python. Defaults to `false`. | |
serverless/README.md
Outdated
| `encodeAuthorizerContext` | When set to `true` for Lambda authorizers, the tracing context will be encoded into the response for propagation. Supported for NodeJS and Python. Defaults to `true`. | | ||
| `decodeAuthorizerContext` | When set to `true` for Lambdas that are authorized via Lambda authorizers, it will parse and use the encoded tracing context (if found). Supported for NodeJS and Python. Defaults to `true`. | | ||
| `apmFlushDeadline` | Used to determine when to submit spans before a timeout occurs, in milliseconds. When the remaining time in an AWS Lambda invocation is less than the value set, the tracer attempts to submit the current active spans and all finished spans. Supported for NodeJS and Python. Defaults to `100` milliseconds. | | ||
| `stepFunctionForwarderArn` | When set, the forwarder will subscribe to all the State Machine' log groups. It is required for instrumenting Step Functions. | |
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.
| `encodeAuthorizerContext` | When set to `true` for Lambda authorizers, the tracing context will be encoded into the response for propagation. Supported for NodeJS and Python. Defaults to `true`. | | |
| `decodeAuthorizerContext` | When set to `true` for Lambdas that are authorized via Lambda authorizers, it will parse and use the encoded tracing context (if found). Supported for NodeJS and Python. Defaults to `true`. | | |
| `apmFlushDeadline` | Used to determine when to submit spans before a timeout occurs, in milliseconds. When the remaining time in an AWS Lambda invocation is less than the value set, the tracer attempts to submit the current active spans and all finished spans. Supported for NodeJS and Python. Defaults to `100` milliseconds. | | |
| `stepFunctionForwarderArn` | When set, the forwarder will subscribe to all the State Machine' log groups. It is required for instrumenting Step Functions. | | |
| `encodeAuthorizerContext` | When set to `true` for Lambda authorizers, the tracing context is encoded into the response for propagation. Supported for Node.js and Python. Defaults to `true`. | | |
| `decodeAuthorizerContext` | When set to `true` for Lambdas that are authorized through Lambda authorizers, it parses and use the encoded tracing context (if found). Supported for Node.js and Python. Defaults to `true`. | | |
| `apmFlushDeadline` | Used to determine when to submit spans before a timeout occurs, in milliseconds. When the remaining time in an AWS Lambda invocation is less than the value set, the tracer attempts to submit the current active spans and all finished spans. Supported for Node.js and Python. Defaults to `100` milliseconds. | | |
| `stepFunctionForwarderArn` | When set, the forwarder subscribes to all the State Machine' log groups. It is required for instrumenting Step Functions. | |
c9b1d3f
to
a734595
Compare
a734595
to
b3274b8
Compare
What does this PR do?
Update README by adding step function related doc.
Details:
stepFunctionForwarderArn
param, which is required for instrumenting a step functionenv
,service
,version
,tags
params, saying they will be set as tags on the step functions as well.Motivation
To make customers aware that this CloudFormation Macro will instrument their step functions as well.
Testing Guidelines
Additional Notes
Types of changes
Check all that apply