Skip to content

Commit 0b4f9dc

Browse files
fix: disable X-Ray trace mixin for deployment
Comment out X-Ray trace delivery that requires pre-configured account-level UpdateTraceSegmentDestination API setup.
1 parent 0ed5ee6 commit 0b4f9dc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/stacks/agent.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ export class AgentStack extends Stack {
197197

198198
// Runtime logs and traces
199199
runtime.with(agentcoremixins.mixins.CfnRuntimeLogsMixin.APPLICATION_LOGS.toLogGroup(applicationLogGroup));
200-
runtime.with(agentcoremixins.mixins.CfnRuntimeLogsMixin.TRACES.toXRay());
200+
// X-Ray trace delivery requires UpdateTraceSegmentDestination pre-configuration at the account level.
201+
// Disabled until the aws/spans log group and X-Ray resource policy are set up.
202+
// runtime.with(agentcoremixins.mixins.CfnRuntimeLogsMixin.TRACES.toXRay());
201203
runtime.with(agentcoremixins.mixins.CfnRuntimeLogsMixin.USAGE_LOGS.toLogGroup(usageLogGroup));
202204

203205
NagSuppressions.addResourceSuppressions(runtime, [

0 commit comments

Comments
 (0)