Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension for AWS SDK for Rust #5

Merged
merged 9 commits into from
Mar 19, 2024
Merged

Extension for AWS SDK for Rust #5

merged 9 commits into from
Mar 19, 2024

Conversation

kikuomax
Copy link
Member

  • Introduce an extension xray-lite-aws-sdk which facilitates tracing of AWS service requests made through the AWS SDK for Rust
    • xray-lite-aws-sdk provides ContextExt which can create an Intercept that can be attached to any request builder of the AWS SDK for Rust and trace the request. ContextExt is automatically implemented for SubsegmentContext.
  • Bump version to 0.0.7
  • Update README, and the API documentation

Derives `Debug` for `SubsegmentSession`. This is necessary to include
`SubsegmentSession` in an implementation of
`aws_smithy_runtime_api::client::interceptors::Intercept`.
`xray-lite-aws-sdk` is an extension of `xray-lite` for AWS SDK for Rust.
It provides an `Intercept` for AWS SDK clients to facilitate tracing of
AWS service requests. An `Intercept` can be created from a `Context` via
`ContextExt` trait extension, which is automatically implemented for any
`Context` that satisfies the additional bounds.
Derives `Clone` for `SubsegmentContext` and `Header`. This is necessary
to automatically implement `ContextExt` for `SubsegmentContext`.
Clippy did not like a map closure returning a unit `()`.
The API documentation of `xray_lite_aws_sdk` includes an example to
report a subsegment for each attempt of the S3 GetObject operation.
Adds `aws-config` and `aws-sdk-s3` to `dev-dependencies` to compile the
example.
The API documentation includes `xray_lite_aws_sdk`.
Adds `xray-lite-aws-sdk/README.md`.

Introduces `xray-lite-aws-sdk` in `README.md`.
Bumps the version in the installation instruction to v0.0.7.
@kikuomax kikuomax self-assigned this Mar 19, 2024
Copy link
Member Author

@kikuomax kikuomax left a comment

Choose a reason for hiding this comment

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

I have self-reviewed the changes.

@kikuomax kikuomax merged commit d45a887 into main Mar 19, 2024
12 checks passed
@kikuomax kikuomax deleted the aws-sdk branch March 19, 2024 23:43
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.

1 participant