[](https://www.npmjs.com/package/@moleculer/lab) [](https://moleculer.services)
npm install @moleculer/lab

``bash`
npm i @moleculer/lab --save
js
// lab.service.js
const Laboratory = require("@moleculer/lab");module.exports = {
mixins: [Laboratory.AgentService],
settings: {
token: "", // or set process.env.LAB_TOKEN
apiKey: "" // or set process.env.LAB_APIKEY
}
};
`
> The API key is sent to beta testers in e-mail.Open the https://lab.moleculer.services and add a new project with the
http://localhost:3210 URL and use the given (or generated) token.$3
`js
// moleculer.config.js
const Laboratory = require("@moleculer/lab");module.exports = {
// ...
metrics: {
enabled: true,
reporter: "Laboratory"
},
// ...
}
`$3
`js
// moleculer.config.js
const Laboratory = require("@moleculer/lab");module.exports = {
// ...
tracing: {
enabled: true,
exporter: "Laboratory"
},
// ...
}
`$3
`js
// moleculer.config.js
const Laboratory = require("@moleculer/lab");module.exports = {
// ...
logger: [{
type: "Console",
options: { /.../ }
}, "Laboratory"],
// ...
}
`` 