Skip to content

Conversation

gabedos
Copy link
Collaborator

@gabedos gabedos commented May 22, 2025

What does this PR do?

Exposes option to configure profiling for applications on ECS Fargate.

Motivation

Parity with onboarding CLI/CFN pages.

Testing Guidelines

Unit tests

Additional Notes

Depends on having APM SSI on the application container. That feature is coming soon via the CDK.

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

@gabedos gabedos requested a review from a team as a code owner May 22, 2025 23:53
@@ -184,6 +184,7 @@ For more general information, reference the [Datadog ECS Fargate Docs](https://d
| `isEnabled` | `boolean` | Enables APM. |
| `isSocketEnabled` | `boolean` | Enables APM traces traffic over Unix Domain Socket. Falls back to TCP when false. |
| `traceInferredProxyServices` | `boolean` | Enables inferred spans for proxy services like AWS API Gateway. When enabled, the tracer will create spans for proxy services by using headers passed from the proxy service to the application. |
| `isProfilingEnabled` | `boolean` | Enables Profiling. (Requires APM SSI on application containers) |
Copy link
Member

Choose a reason for hiding this comment

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

Should this say APM instead of APM SSI?
I guess this works if the image contains the APM libraries even if they were not installed with APM SSI.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

From my understanding, on application containers that are simply configured with APM libraries natively do NOT support profiling by simply setting the envvar. Instead the user must manually setup the profiler.

For APM SSI, I think the way the tracers are loaded are different and they have a step for activating the profiler based on the DD_PROFILING_ENABLED envvar as mentioned here.

Additionally APM SSI will soon be supported in CDK so this is meant to reference that.

Base automatically changed from gabedos/simplify-ecs-exports to main May 23, 2025 19:02
@gabedos gabedos requested a review from a team as a code owner May 23, 2025 19:02
@gabedos gabedos requested a review from clifordshelton May 23, 2025 19:02
@gabedos gabedos force-pushed the gabedos/ecs-fargate-profiling branch from 3f22432 to 2e9097b Compare May 28, 2025 21:41
@gabedos gabedos merged commit cf14316 into main May 29, 2025
8 checks passed
@gabedos gabedos deleted the gabedos/ecs-fargate-profiling branch May 29, 2025 19:24
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.

3 participants