Skip to content

Firestore Cloud functions V2 are missing a trace in logs #1439

Closed
@milo-

Description

@milo-

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! 😍

CleanShot 2023-07-11 at 20 49 55@2x

[REQUIRED] Actual behavior

This is how v2 firestore logs show up. No trace, so hard to debug 😭

CleanShot 2023-07-11 at 20 48 35@2x

Were you able to successfully deploy your functions?

Yes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions