We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, in Fastify, we'd have to do something like this on GCP per fastify/help#360:
await server.addHook('onRequest', (request, reply, done) => { if (typeof request.id === 'string') { const [trace, spanId] = request.id.split(';')[0].split('/'); const bindings = { 'logging.googleapis.com/spanId': spanId, 'logging.googleapis.com/trace': `projects/<GCP_PROJECT_ID>/traces/${trace}`, }; request.log = request.log.child(bindings); reply.log = reply.log.child(bindings); } done(); });
I've just tested it in relaycorp/cloud-gateway@ad8c8a5:
TODO
@relaycorp/pino-cloud-tracing
X-Amzn-Trace-Id
X-Cloud-Trace-Context
@relaycorp/fastify-lb-tracing
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For example, in Fastify, we'd have to do something like this on GCP per fastify/help#360:
I've just tested it in relaycorp/cloud-gateway@ad8c8a5:
TODO
@relaycorp/pino-cloud-tracing
library to generate child logger from a trace id likeX-Amzn-Trace-Id
orX-Cloud-Trace-Context
(GCP).@relaycorp/fastify-lb-tracing
Fastify plugin using the library above.@relaycorp/fastify-lb-tracing
in PoWeb service.@relaycorp/fastify-lb-tracing
in PoHTTP service.@relaycorp/pino-cloud-tracing
in PoWeb's WebSocket endpoint.@relaycorp/pino-cloud-tracing
in CogRPC service.The text was updated successfully, but these errors were encountered: