Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Conversation

Copy link
Contributor

Copilot AI commented Oct 26, 2025

Enables distributed tracing across the Lambda function and API Gateway to capture request flows, latency breakdowns, and error contexts in X-Ray.

Changes

CloudFormation Template (.aws/cfn-service.yml)

  • Added TracingConfig: Mode: Active to Lambda function resource
  • Added AWSXRayDaemonWriteAccess managed policy to Lambda execution role
  • Enabled TracingEnabled: true on API Gateway stage

Result

End-to-end tracing from API Gateway through Lambda with service maps and per-request trace details available in X-Ray console. Application code already logs x-amzn-trace-id headers, no further instrumentation needed.

# Lambda function
TracingConfig:
  Mode: Active

# IAM role
ManagedPolicyArns:
  - arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess

# API Gateway stage
TracingEnabled: true
Original prompt

This section details on the original issue you should resolve

<issue_title>X-Rayの有効化 (cfn-service.yml)</issue_title>
<issue_description>- Active traceを有効化したい。
</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: oyakodon <16263307+oyakodon@users.noreply.github.com>
Copilot AI changed the title [WIP] Enable active trace in cfn-service.yml feat: Enable AWS X-Ray Active Tracing for Lambda and API Gateway Oct 26, 2025
Copilot AI requested a review from oyakodon October 26, 2025 16:31
@oyakodon oyakodon marked this pull request as ready for review October 27, 2025 01:30
@oyakodon oyakodon merged commit 1fc187c into main Oct 27, 2025
1 check passed
@oyakodon oyakodon deleted the copilot/enable-active-trace branch October 27, 2025 01:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

X-Rayの有効化 (cfn-service.yml)

2 participants