{"_id":"57220fd43926280e00c92325","__v":15,"project":"56a1f77442dfda0d00046285","user":"5720801f5be73c170096021a","parentDoc":null,"version":{"_id":"56a1f77542dfda0d00046288","__v":9,"project":"56a1f77442dfda0d00046285","createdAt":"2016-01-22T09:33:41.397Z","releaseDate":"2016-01-22T09:33:41.397Z","categories":["56a1f77542dfda0d00046289","56a1fdf442dfda0d00046294","56a2079f0067c00d00a2f955","56a20bdf8b2e6f0d0018ea84","56a3e78a94ec0a0d00b39fed","56af19929d32e30d0006d2ce","5721f4e9dcfa860e005bef98","574e870be892bf0e004fde0d","5832fdcdb32d820f0072e12f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5721f4e9dcfa860e005bef98","project":"56a1f77442dfda0d00046285","__v":0,"version":"56a1f77542dfda0d00046288","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-04-28T11:32:57.879Z","from_sync":false,"order":5,"slug":"partners-integrations","title":"Partners & Integrations"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-04-28T13:27:48.794Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"## 1. Ensure that all prerequisites are met\n\n- Have npm version 2.7 or greater - to update simply use `npm install npm -g`\n\n\n## 2. Check the available plans for Trace via the [CLI tool](http://docs.cloudfoundry.org/cf-cli/) for Cloud Foundry\n\n- List and select the most fitting plan for your needs by using `cf marketplace -s trace`\n- About pricing you can find additional information at [very-useful-link](http://google.com)\n\n\n## 3. Bind Trace with the selected plan to your space and services\n\n1. Use our addon and create a new service called \"my-trace-service\" attached to your space by `cf create-service trace freebeta my-trace-service`\n2. Bind your brand new service instance to your applications to start monitoring them - use `cf bind-service my-application-name my-trace-service`\n\n\n## 4. Install the Trace collector\n\n1. Install the Trace collector as a dependency of your Node.js apps using the following command `npm install :::at:::risingstack/trace --save`\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"As Trace uses scoped packages, be sure to use npm version greater than 2.7.0. If you can't update to [email protected] for whatever reason, you can still install Trace using `npm i risingstack/trace-nodejs`.\"\n}\n[/block]\n2. Import Trace in the main script of your application. It should be the **first** module you require.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"// index.js\\n\\nrequire('@risingstack/trace') // trace should be on top\\n\\n// your application code\\n\\nvar express = require('express') \\nvar app = express()\\n\\n// so on ...\",\n      \"language\": \"javascript\"\n    }\n  ]\n}\n[/block]\n3. Publish your updated applications.\n\n\n## 5. Congratulations! That's all, now you can start using Trace\n\n1. Open your browser with [https://appfog.ctl.io](https://appfog.ctl.io) and navigate to your space dashboard to see available services.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/pPto4Kz0StqKwNLMnhxp_Screen%20Shot%202016-04-28%20at%2015.39.54.png\",\n        \"CTL services dashboard\",\n        \"619\",\n        \"169\",\n        \"#6078a8\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n2. In order to log in Trace, simply click on the instance name and you will be redirected to the landing page. Enjoy!","excerpt":"Do you have a micro-services infrastructure hosted in the CenturyLink Cloud?\nGreat, you are just a few steps far to use Trace.\nFollow these steps and start monitoring your services now!","slug":"centurylink","type":"basic","title":"CenturyLink"}

CenturyLink

Do you have a micro-services infrastructure hosted in the CenturyLink Cloud? Great, you are just a few steps far to use Trace. Follow these steps and start monitoring your services now!

## 1. Ensure that all prerequisites are met - Have npm version 2.7 or greater - to update simply use `npm install npm -g` ## 2. Check the available plans for Trace via the [CLI tool](http://docs.cloudfoundry.org/cf-cli/) for Cloud Foundry - List and select the most fitting plan for your needs by using `cf marketplace -s trace` - About pricing you can find additional information at [very-useful-link](http://google.com) ## 3. Bind Trace with the selected plan to your space and services 1. Use our addon and create a new service called "my-trace-service" attached to your space by `cf create-service trace freebeta my-trace-service` 2. Bind your brand new service instance to your applications to start monitoring them - use `cf bind-service my-application-name my-trace-service` ## 4. Install the Trace collector 1. Install the Trace collector as a dependency of your Node.js apps using the following command `npm install @risingstack/trace --save` [block:callout] { "type": "warning", "body": "As Trace uses scoped packages, be sure to use npm version greater than 2.7.0. If you can't update to [email protected] for whatever reason, you can still install Trace using `npm i risingstack/trace-nodejs`." } [/block] 2. Import Trace in the main script of your application. It should be the **first** module you require. [block:code] { "codes": [ { "code": "// index.js\n\nrequire('@risingstack/trace') // trace should be on top\n\n// your application code\n\nvar express = require('express') \nvar app = express()\n\n// so on ...", "language": "javascript" } ] } [/block] 3. Publish your updated applications. ## 5. Congratulations! That's all, now you can start using Trace 1. Open your browser with [https://appfog.ctl.io](https://appfog.ctl.io) and navigate to your space dashboard to see available services. [block:image] { "images": [ { "image": [ "https://files.readme.io/pPto4Kz0StqKwNLMnhxp_Screen%20Shot%202016-04-28%20at%2015.39.54.png", "CTL services dashboard", "619", "169", "#6078a8", "" ] } ] } [/block] 2. In order to log in Trace, simply click on the instance name and you will be redirected to the landing page. Enjoy!