-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firestore Cloud functions V2 are missing a trace in logs #1439
Comments
I found a few problems with this issue:
|
Looking at the source for other v2 triggers, they wrap all the handlers using wrapTraceContext: The v2 Firestore handler isn't using wrapTraceContext: |
It might be worth adding that when importing v1 stuff into a v2 function (e.g. the old I assume this is working as intended. |
why is this closed? |
Hi @fgatti675, see my comment here for more details about how to trace logs from the same invocation in 2nd gen. If you are continuing to have issues, please open a new issue with a reproducible sample and we'll investigate as soon as we can. |
Thank you! We managed to get the traces working again, we were really missing this. |
Traces are gone, not sure since when, with no changes in our side. |
|
@Byrontoo: We were having the same issues. Suddenly our stack traces were shortened after a redeploy, yet no firebase related dependencies had been updated. In fact, through much debugging it seemed that the So it appears that during function deployment, the So |
This is a really good microcosm of the complexities that are now inherent within the Firebase platform, especially given how it integrates with Google Cloud as a whole. As a developer that has banked significant intellectual and monetary capital on Firebase and Google Cloud, it disheartens me to see these kinds of things crop up on a regular basis (from my monitoring of the various Firebase repos and groups, and personal experience). Another prime example: the inability to have a single list of the permissions needed for a service account to deploy to Firebase, requiring lots of trial and error, and breaking whenever new capabilities or changes are made. At this point, it feels like Firebase and Google Cloud is buckling under it's own weight, and isn't a coherent enough platform. And with resources being cut and then diverted to the latest newfangled gen AI slop machinery I'm not sure anymore what my confidence levels are in Firebase (and Google as a whole) as a platform to build products on top of. Don't get me wrong, I still enjoy using services like Firestore. But I'm more and more concerned about being locked in to a platform with an uncertain and complex future. |
Since this ticket was closed, I am expressing all my frustrations with this issue in a new one: |
Thank you for your reply, but it didn't work when I used |
@Byrontoo In our setup we are actually deploying the function along with an env file which is loaded upon startup. Here we set the value of LOG_EXECUTION_ID to true. I believe this has to be loaded before the function export. |
Same issue and the reset with missing Trace logs |
I was having the issue, and adding |
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
[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
The text was updated successfully, but these errors were encountered: