Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Skip adding display name prefix for metrics with custom domain #273

Merged
merged 1 commit into from
Aug 11, 2020

Conversation

nilebox
Copy link
Contributor

@nilebox nilebox commented Aug 10, 2020

This is a quick fix (though a bit hacky) for the following problem: when a metric name is prefixed with a custom domain, the generated display name is pretty long and confusing.
e.g. for metric external.googleapis.com/user/my_metric the display name is OpenCensus/external.googleapis.com/user/my_metric.

Also, since we use this exporter in OpenTelemetry collector, having OpenCensus/ as a prefix on all metrics is pretty confusing as well.

This fix just removes the redundant OpenCensus/ prefix from such metrics as a quick workaround.
Ideally we may want to also consider removing domain from the display name as well, but that requires more changes in configuration and overall code.

@nilebox nilebox force-pushed the fix-display-name-prefix branch from 203f813 to 572977f Compare August 10, 2020 06:22
@nilebox nilebox force-pushed the fix-display-name-prefix branch from 572977f to e3c7f0c Compare August 10, 2020 06:38
@james-bebbington
Copy link
Contributor

Seems like a reasonable change for now, and changing Display Names should be safe afaiu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants