You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable step function tracing at forwarder level (#831)
* Initial logic to add fetch and add the lambda tag
* Set tag in env var to avoid fetching everytime
* Moved tag to cloudformation param
* Fixed readme, moved param under advanced param
* Removed context passing
* Removed unused import
* Fixed template condition
* Update readme language for consistency
* Moved tagging outside of just lambda
* black formatting
* Updated language to specify all step functions
* Updated language to call it tracing instead of l2t
* Moved step functions specific logic to handle_step_function_source()
* Updated tests to check for new tag
* renamed to 'Step Functions', missing 's' before
Copy file name to clipboardExpand all lines: aws/logs_monitoring/README.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ Starting version 3.107.0 a new feature is added to enable Lambda function to sto
148
148
149
149
### Upgrade an older version to +3.106.0
150
150
151
-
Starting version 3.106.0 Lambda function has been updated to add a prefix to cache filenames stored in the S3 bucket configured in `DD_S3_BUCKET_NAME`. This allows to use the same bucket to store cache files from several functions.
151
+
Starting version 3.106.0 Lambda function has been updated to add a prefix to cache filenames stored in the S3 bucket configured in `DD_S3_BUCKET_NAME`. This allows to use the same bucket to store cache files from several functions.
152
152
Additionally, starting this version, the forwarder will attach custom S3 bucket tags by default to all logs exported to S3. For example, if a service is configured to send logs to a destiantion S3 bucket, the forwarder will add the bucket's tags to the logs while pulling and forwarding the logs.
153
153
154
154
### Upgrade an older version to +3.99.0
@@ -388,15 +388,6 @@ SSL encrypted TCP connection, set this parameter to true.
388
388
`DdForwardLog`
389
389
: Set to false to disable log forwarding, while continuing to forward other observability data, such as metrics and traces from Lambda functions.
390
390
391
-
`DdFetchLambdaTags`
392
-
: Let the Forwarder fetch Lambda tags using GetResources API calls and apply them to logs, metrics, and traces. If set to true, permission `tag:GetResources` will be automatically added to the Lambda execution IAM role.
393
-
394
-
`DdFetchLogGroupTags`
395
-
: Let the forwarder fetch Log Group tags using ListTagsLogGroup and apply them to logs, metrics, and traces. If set to true, permission `logs:ListTagsLogGroup` will be automatically added to the Lambda execution IAM role.
396
-
397
-
`DdFetchStepFunctionsTags`
398
-
: Let the Forwarder fetch Step Functions tags using GetResources API calls and apply them to logs and traces (if Step Functions tracing is enabled). If set to true, permission `tag:GetResources` will be automatically added to the Lambda execution IAM role.
399
-
400
391
### Log scrubbing (optional)
401
392
402
393
`RedactIp`
@@ -433,6 +424,18 @@ To test different patterns against your logs, turn on [debug logs](#troubleshoot
433
424
434
425
### Advanced (optional)
435
426
427
+
`DdFetchLambdaTags`
428
+
: Let the Forwarder fetch Lambda tags using GetResources API calls and apply them to logs, metrics, and traces. If set to true, permission `tag:GetResources` will be automatically added to the Lambda execution IAM role.
429
+
430
+
`DdFetchLogGroupTags`
431
+
: Let the forwarder fetch Log Group tags using ListTagsLogGroup and apply them to logs, metrics, and traces. If set to true, permission `logs:ListTagsLogGroup` will be automatically added to the Lambda execution IAM role.
432
+
433
+
`DdFetchStepFunctionsTags`
434
+
: Let the Forwarder fetch Step Functions tags using GetResources API calls and apply them to logs and traces (if Step Functions tracing is enabled). If set to true, permission `tag:GetResources` will be automatically added to the Lambda execution IAM role.
435
+
436
+
`DdStepFunctionTraceEnabled`
437
+
: Set to true to enable tracing for all Step Functions.
438
+
436
439
`SourceZipUrl`
437
440
: Do not change unless you know what you are doing. Override the default location of the function source code.
Copy file name to clipboardExpand all lines: aws/logs_monitoring/template.yaml
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -161,6 +161,13 @@ Parameters:
161
161
- true
162
162
- false
163
163
Description: Set to false to disable log forwarding, while continuing to forward other observability data, such as metrics and traces from Lambda functions.
164
+
DdStepFunctionsTraceEnabled:
165
+
Type: String
166
+
Default: false
167
+
AllowedValues:
168
+
- true
169
+
- false
170
+
Description: Set to true to enable tracing for all Step Functions.
0 commit comments