-
Notifications
You must be signed in to change notification settings - Fork 204
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
New structured logger not applying labels #703
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
This is a backend issue (internal id: b/146219077) that is currently being looked at. There's nothing specific that we can do in this repo to address it, but I'll leave this open and hopefully remember to come back and ping it when the backend is fixed. Thanks for the report! |
Thanks! Should we be using |
Use logging.googleapis.com/labels
…On Wed, Jun 10, 2020, 10:00 AM Rich Hodgkins ***@***.***> wrote:
Thanks!
Should we be using labels or logging.googleapis.com/labels so it’ll just
work once the bug is fixed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#703 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAH7T3553KCRFNA5QJXD3RV633FANCNFSM4N2I3IEA>
.
|
@mbleigh its been a few months so I thought I'd check in and see if its been fixed? Thanks in advance |
@mbleigh went to check on this and with the original above code |
Same issue with Cross all languages and any Structured Logs |
I haven't tried Cloud Functions (but Firebase functions are built on top of these so I imagine its the same as this issue), but labels are showing for me with Cloud Run when using the |
2021 update: Cloud Functions backend is working on a fix to this issue. I will come back in another week to provide an update. |
I'm reading from internal tracking bug that the fix should land in a week or so. Will provide another update in a few weeks. |
Personally I'm seeing the log labels being correctly applied in Cloud Monitoring. The rollout is only ~90% done, but you may also start to see the label being applied correctly. Rollout should be fully completed in the next couple of days. |
Yep all working for me now too thanks @taeold |
This is using the new
require('firebase-functions').logger
in Node 10.According to the container logs contract we should be able to write
labels
for aLogEntry
by using the special fieldlogging.googleapis.com/labels
. However these labels just get applied to thejsonPayload
in the Logs Viewer (in GCP).I've also tried just a plan
labels
field with no success.Reproduction
Deploy a function that contains the following and run the function:
Logs Viewer output:
I'd expect the
jsonPayload[labels]
andjsonPayload[logging.googleapis.com/labels]
to be included under thelabels
at the root.It might be the case its not supported but wanted to check as other special fields from the list (i.e.
message
,timestamp
) are being converted correctly!The text was updated successfully, but these errors were encountered: