App Engine and Functions in the same project, does Tracing service both?

35 views
Skip to first unread message

Mark Kubacki

unread,
Sep 6, 2019, 12:55:01 PM9/6/19
to Google App Engine
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!

Mark Kubacki

unread,
Sep 6, 2019, 2:44:48 PM9/6/19
to Google App Engine
Sorted: I've switched to OpenCensus/OpenTelemetry and traces for both, App Engine and Functions, do show up.

-- 
Cheers!
Reply all
Reply to author
Forward
0 new messages