Hello!
Using App Engine (Go) I've recently deployed an cloud Function in NodeJS 10.4.1. Both within the same project.
Can anyone confirm that the web console, "Tracing→Overview" and similar, shows traces for App Engine and Functions?
Traces for Functions won't show up for me (indeed, the web console gained a field "Service (App Engine)" which doesn't apply to Functions with no way around it), neither is anything about this in the logs.
I'd like to rule out having made a mistake somewhere. I've already checked that the Function's service account has "role/cloudprofiler.agent" and tracing is enabled for the project.
I'm using wrapper "runInRootSpan" as workaround from the issue tracker. Anyway, here's the full minimal example:
const traceApi = require('@google-cloud/trace-agent').start({
bufferSize: 1,
});
exports.serve = async (req, res) => {
return traceApi.runInRootSpan({name: 'serve'}, async (span) => {
return await exampleFunc(span, req, res);
});
}
--
Thanks!