X Tutup
Skip to content

MonitoredResource.newBuilder accepts arbitrary input, but does not log if invalid resource #1676

@jabubake

Description

@jabubake

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.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the Cloud Logging API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup