Document updated on Sep 15, 2019
Exporting traces to AWS X-Ray
AWS X-Ray is a service offered by Amazon that provides an end-to-end view of requests as they travel through your application, and shows a map of your application’s underlying components.
The Opencensus exporter allows you export data to AWS X-Ray. Enabling it only requires you to add the xray
exporter in the opencensus module.
The following configuration snippet sends data to your X-Ray:
"github_com/devopsfaith/krakend-opencensus": {
"exporters": {
"xray": {
"version": "latest",
"region": "eu-west-1",
"use_env": false,
"access_key_id": "myaccesskey",
"secret_access_key": "mysecretkey"
},
}
}
version
: The version of the AWS X-Ray service to use.region
: The AWS geographical region.use_env
: Whentrue
the AWS credentials (access_key_id
andsecret_access_key
) are taken from environment vars. Don’t specify them then.access_key_id
: Your access key ID provided by Amazon. Needed whenuse_env
is unset or set tofalse
.secret_access_key
: Your secret access key provided by Amazon. Needed whenuse_env
is unset or set tofalse
.
See also the additional settings of the Opencensus module that can be declared.