My purpose is to monitor (APM, Logs) all our aws-lambda functions with Datadog.
I've set the Datadog AWS integration with manual creation of role and policy and it looks like working, I see AWS the metrics.
Now I want to add APM to our Lambda functions, but when I try to set up the APM integration with AWS CDK, I see nothing on APM.
This is the integration code:
export class MyStack extends Stack {
constructor(scope: Construct, id: string, props?: BigHeadStackProps) {
super(scope, id, props);
const TheMonitoredFunction: Function = this.createLambdaFunction(props);
const datadog: Datadog = new Datadog(this, "Datadog", {
pythonLayerVersion: 60,
extensionLayerVersion: 25,
site: "datadoghq.eu",
captureLambdaPayload: true,
apiKeySecretArn: "SECRET"
});
datadog.addLambdaFunctions([TheMonitoredFunction]);
Am I doing something wrong above? If not, how can I debug this integration?