Moleculer Laboratory - Agent Service

Install
npm i @moleculer/lab --save
Usage
Laboratory Agent service
const Laboratory = require("@moleculer/lab");
module.exports = {
mixins: [Laboratory.AgentService],
settings: {
token: "<something secret text>",
apiKey: "<your API key>"
}
};
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.
Laboratory Metric Reporter
const Laboratory = require("@moleculer/lab");
module.exports = {
metrics: {
enabled: true,
reporter: "Laboratory"
},
}
Laboratory Tracing Exporter
const Laboratory = require("@moleculer/lab");
module.exports = {
tracing: {
enabled: true,
exporter: "Laboratory"
},
}
Laboratory Logger
const Laboratory = require("@moleculer/lab");
module.exports = {
logger: [{
type: "Console",
options: { }
}, "Laboratory"],
}
Contact
Copyright (c) 2016-2025 MoleculerJS
