This library support Cloud Trace when using GCP Pubsub
npm install --save gcp-trace-pubsub
Add plugin to cloud trace as follow:
const tracer = require('@google-cloud/trace-agent').start({
keyFilename: './app-service-account.json',
plugins: {
'@google-cloud/pubsub': 'gcp-trace-pubsub'
}
});
👤 Tung Nguyen
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator