Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did not get a trace on tracing list #20

Open
t0rton opened this issue Apr 6, 2021 · 0 comments
Open

Did not get a trace on tracing list #20

t0rton opened this issue Apr 6, 2021 · 0 comments

Comments

@t0rton
Copy link

t0rton commented Apr 6, 2021

my application is on AWS and i can't get any tracing back to gcloud dashboard
any suggest for this setup?
and this is my sample code setup.

const fastify = require('fastify')({ logger: true })
const got = require('got');

fastify.register(require('fastify-redis'), { host: '127.0.0.1' })

fastify.register(
  require('fastify-gcloud-trace'), {
  traceApiOptions: {
    // Pass options for Stackdriver Trace API
    ignoreMethods: ['OPTIONS'],
    projectId: '<PROJECTID>',
    keyFilename: './key.json', // key to connect gcloud
  },
},
);

fastify.get('/foo', (req, reply) => {
  const { redis } = fastify
  redis.get('auth_1', (err, val) => {
    reply.send(err || val)
  })
});

const start = async () => {
  try {
    await fastify.listen(3000)
  } catch (err) {
    fastify.log.error(err)
  }
}
start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant