Tracing AWS SDK Calls with the
X-Ray SDK for Ruby

When your application makes calls to AWS services to store data, write to a queue,
or send
notifications, the X-Ray SDK for Ruby tracks the calls downstream in subsegments. Traced AWS services and resources that
you access within those services (for example, an Amazon S3 bucket or Amazon SQS queue),
appear as
downstream nodes on the service map in the X-Ray console.

The X-Ray SDK for Ruby automatically instruments all AWS SDK clients when you patch the aws-sdk library. You cannot
instrument individual clients.

For all services, you can see the name of the API
called in the X-Ray console. For a subset of services, the X-Ray SDK adds information
to the segment
to provide more granularity in the service map.

For example, when you make a call with an instrumented
DynamoDB client, the SDK adds the table name to the segment for calls that target
a table. In the
console, each table appears as a separate node in the service map, with a generic
DynamoDB node
for calls that don't target a table.