From the course: Cloud Native Development with Node.js, Docker, and Kubernetes

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Adding OpenTracing to the app

Adding OpenTracing to the app

From the course: Cloud Native Development with Node.js, Docker, and Kubernetes

Start my 1-month free trial

Adding OpenTracing to the app

- [Instructor] As with the other CloudNative capabilities we've added to our app, the CloudNativeJS project provides a module for adding OpenTracing support to our application. If we view that project in GitHub, we can see it's called "appmetrics-zipkin." And this uses a module called App Metrics and wraps the Zipkin module to add OpenTracing support for Zipkin to our application. Let's go ahead and require that module, and then add it to our application. We'll first go into our project, and then we'll use npm to install the module. Now we'll open our application in VS Code. As in the other cases, this is added our dependency into our package.json file, with the latest version of the module, which is currently 1.1.1. Next, we need to edit our app.js file in order to require that module. To do that, we require in the first line, (computer keys typing) and save our project. Now that we've done that, we can run our application, and it will produce Zipkin data. But we don't yet have a…

Contents