Skip to content

Conversation

@psx95
Copy link
Contributor

@psx95 psx95 commented Apr 14, 2023

Fixes #225

There were duplicate metric points being pushed in the same timeseries since the same metric was being logged by multiple libraries.

According to the exporter spec, by default the instrumentation scope and version should be attached as metric labels which would prevent such an issue. This PR attaches the instrumentation scope and version as metrics label so that the metrics are de-duplicated.

Testing

  • Ran the autoinstrumentation example successfully - with no errors being logged that previously indicated a few metrics being dropped.
@psx95 psx95 self-assigned this Apr 15, 2023
@psx95 psx95 requested review from aabmass, jsuereth and punya April 15, 2023 15:31
@psx95 psx95 marked this pull request as ready for review April 15, 2023 15:31
@psx95 psx95 requested a review from a team as a code owner April 15, 2023 15:31
@psx95 psx95 merged commit 96beabd into GoogleCloudPlatform:main Apr 18, 2023
@psx95 psx95 deleted the fix-timeseries branch April 18, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants