Closed
Description
Firestore Cloud functions V2 are missing traces in logs, which makes debugging very painful.
[REQUIRED] Version info
node: 18
firebase-functions: 4.4.1
firebase-tools: 12.4.3
firebase-admin: 11.9.0
[REQUIRED] Test case
import { logger } from "firebase-functions/v2";
export const foo = onDocumentWritten(
{
document: "/foo/{fooId}",
},
async (event) => {
logger.info("This log should have trace. But it does not 😭");
}
);
[REQUIRED] Steps to reproduce
Create a v2 firestore function and look at the logs in the Google Cloud Logs
[REQUIRED] Expected behavior
There should be a trace, to make debugging easier. It is a massive pain to do right now.
This is how firebase-function tasks show up in the logs. Lovely, a trace. So easy to debug! 😍

[REQUIRED] Actual behavior
This is how v2 firestore logs show up. No trace, so hard to debug 😭

Were you able to successfully deploy your functions?
Yes