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!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/3c392a2d-b7db-4948-8559-500b98c08320%40googlegroups.com.

Reply via email to