Keep original labels like "instanceId" #1451
Labels
api: logging
Issues related to the googleapis/nodejs-logging API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
A Cloud Run instance can handle multiple requests. Also, multiple Cloud Run instances could be running.
It is currently not visible which Cloud Run instance is logging.
Describe the solution you'd like
If I use console.log in my NodeJS application, the labels in the log will show the labels of the Cloud Run Service, as well as an "instanceId". When I use this package, those 'default' labels in the logging disappear.
I want those labels to be present, even when I add other labels.
Additional context
Example of default google logging (console.log), which shows the Cloud Run labels and an instanceId.
Example of logging with this package, which removed the original labels and only added the labels set by this package.
The text was updated successfully, but these errors were encountered: