Skip to content

Conversation

DNVindhya
Copy link
Contributor

Backport of #9982 to v1.54.x.

This PR adds a default custom tag for metrics, irrespective of custom tags being present in the observability configuration.

OpenCensus by default adds a custom tag opencenus_task for metrics which gets overriden if custom tags are set.

The unique custom tag is required to ensure the uniqueness of the Timeseries. The format of the default custom tag is: java-{PID}@{HOSTNAME}, if {PID} is not available a random number will be used

This PR adds a default custom tag for metrics, irrespective of custom
tags being present in the observability configuration. 

OpenCensus by default adds a custom tag
[opencenus_task](https://docs.google.com/document/d/1sWC-XD277cM0PXxAhzJKY2X0Uj2W7bVoSv-jvnA0N8Q/edit?resourcekey=0-l-wqh1fctxZXHCUrvZv2BQ#heading=h.xy85j580eik0)
for metrics which gets overriden if custom tags are set.

The unique custom tag is required to ensure the uniqueness of the
Timeseries. The format of the default custom tag is:
`java-{PID}@{HOSTNAME}`, if `{PID}` is not available a random number
will be used.
@DNVindhya DNVindhya requested a review from ejona86 March 22, 2023 23:46
@ejona86 ejona86 merged commit 9f26b7d into grpc:v1.54.x Mar 23, 2023
@DNVindhya DNVindhya deleted the backport-1.54-gcp-o11y-metric-unique-id branch March 24, 2023 20:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants