You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{onCall}from"firebase-functions/v2/https";exportconstcheckoutAddPaymentMethodPayPal=onCall(async(request)=>{console.log("This should have a trace, but it does not.");});
[REQUIRED] Steps to reproduce
Deploy above code
Check cloud function logs
Try to view the logs from "same trace"
[REQUIRED] Expected behavior
Should have a trace.
[REQUIRED] Actual behavior
Doesn't, "same trace" is greyed out.
Were you able to successfully deploy your functions?
Activity
google-oss-bot commentedon Nov 14, 2023
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
[-]Gen 2 cloud functions don't have traces[/-][+]Gen 2 onCall handlers don't have traces[/+]joshgare commentedon Nov 20, 2023
Seeing the same issue, making debugging on stackdriver much more troublesome than V1 functions.
blidd-google commentedon Nov 28, 2023
Thanks for bringing this to our attention, PR is out that wraps onCall handlers with trace context.