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

Remove the call to getMetricDescriptor and try to always create the MetricDescriptor. #636

Merged
merged 1 commit into from
Mar 26, 2018

Conversation

bogdandrutu
Copy link
Contributor

@bogdandrutu bogdandrutu commented Mar 25, 2018

This way the createMetricDescriptor will fail (and we log an error) if a different descriptor is used for the same metric name. Also updated the createMetricDescriptor to send the Name field (like Java does).

Also removed calls to deprecated "monitoring.MetricProjectPath" and replace them with suggested new way to achieve this.

Copy link
Contributor

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bogdandrutu bogdandrutu merged commit 12aa45c into census-instrumentation:master Mar 26, 2018
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