npm install @thundra/core --save
After installing the @thundra/core module, you will need to add Thundra Express middleware to your application. Thundra will monitor your application automatically.
app.jsconst thundra = require("@thundra/core");const express = require('express');​const app = express()app.use(thundra.expressMW());​app.get('/', function (req,res) {res.send("Response")});app.listen(3000)
Set the thundra_apiKey
environment variable to the API key value you got from the Thundra console.
app.jsconst thundra = require("@thundra/core");// adding apiKey programmaticallythundra.init({apiKey:<Thundra-ApiKey>})
Shellexport thundra_apiKey=<Thundra-ApiKey>
DockerfileENV thundra_apiKey=<Thundra-ApiKey>