Fixed Debugger config for node services

This commit is contained in:
morganmclean 2018-07-17 15:04:25 -07:00
parent cca50463ee
commit bfb740c079
2 changed files with 12 additions and 2 deletions

View file

@ -21,7 +21,12 @@ require('@google-cloud/profiler').start({
}
});
require('@google-cloud/trace-agent').start();
require('@google-cloud/debug-agent').start();
require('@google-cloud/debug-agent').start({
serviceContext: {
service: 'currencyservice',
version: 'VERSION'
}
})
const path = require('path');
const grpc = require('grpc');

View file

@ -23,7 +23,12 @@ require('@google-cloud/profiler').start({
}
});
require('@google-cloud/trace-agent').start();
require('@google-cloud/debug-agent').start();
require('@google-cloud/debug-agent').start({
serviceContext: {
service: 'paymentservice',
version: 'VERSION'
}
})
const HipsterShopServer = require('./server');