Set user information
Set user ID and other additional information.
monitor.setUser(userId[, metaData])
Parameters:
-
userId: user ID string.
-
metaData: additional additional information.
Example:
const monitor = require('./agent/tingyun-mp-agent.js');
monitor.setUser('user1', {
metaData: {
...
}
})