-
Notifications
You must be signed in to change notification settings - Fork 1.1k
MonitoredResource.newBuilder accepts arbitrary input, but does not log if invalid resource #1676
Copy link
Copy link
Closed
Labels
api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Supported resource types @ https://cloud.google.com/monitoring/api/resources
MonitoredResource.newBuilder currently accepts a free string. Logging backend validates against supported resource types and does not log if it is not a supported log type.
We should have a cleaner way for the user to provide the resource type : be inferred from environment (GCE vs GAE ?) or have a custom resource type be used by default when user logs via the API.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
api: loggingIssues related to the Cloud Logging API.Issues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.