We'll use AWS credentials in this example.
variable "aws_access_key" {
description = "AWS Access Key"
cargo add criterion --dev
This gist outlines the steps for sending data collected with the tracing crate, a Rust crate for application-level tracing, to a Fastly log endpoint. For simplicity, I will use the Subscriber and Layer implementations included in the tracing_subscriber
crate. However, you can write your own custom implementations to modify the collected data and its format.
Add the required dependencies to your Cargo.toml file.
tracing = "0.1.37"
This gist shows how to instrument a C@E app using the tracing-tree
crate.
This is an example of what the output will look like. It works in a local environment as well.
tracing-tree
works out-of-the-box on Compute@Edge. However, to enhance the format of the output shown in the image above, I used a modified, forked version.
Note: As of April 2023, it appears that only TypeScript supports the conversion of existing Terraform projects.
The project directory structure in this example steps is as follows: cdktf
is the working directory and tf
is the existing Terraform Project.
Follow the documentation to set up your redirection.io account and install the tools to get started with Compute@Edge.
Documents: