Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dynatraceexporter): provide better estimated summaries for partial histograms #11044

Merged

Conversation

dyladan
Copy link
Member

@dyladan dyladan commented Jun 14, 2022

Dynatrace exporter converts histograms to stat summary gauges. This PR improves the estimation in the following ways:

  • Sum is now estimated if it is missing
  • single-bucket histograms are now supported
  • if any of (min, max, sum) is provided in the data it will be used. missing fields will be estimated
  • min, max estimation is now much more thoroughly tested

@dyladan dyladan requested a review from a team June 14, 2022 22:34
@dyladan dyladan requested a review from arminru as a code owner June 14, 2022 22:34
@dyladan dyladan requested a review from codeboten June 14, 2022 22:35
@dyladan dyladan changed the title feat(dynatraceexporter): provide better estimated summaries for parti… feat(dynatraceexporter): provide better estimated summaries for partial histograms Jun 14, 2022
Copy link
Member

@joaopgrassi joaopgrassi left a comment

Choose a reason for hiding this comment

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

Did an initial pass, overall looks good! I think we only need to add more tests to make sure the sum estimation works.

// range for counts[i] is bounds[i-1] to bounds[i]

// min estimation
if !foundNonEmptyBucket {
Copy link
Member

Choose a reason for hiding this comment

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

Hum.. not sure I get the motive of this var here? Couldn't we just check if it's i == 0 it will only go inside once..🤔

Copy link
Member Author

@dyladan dyladan Jun 16, 2022

Choose a reason for hiding this comment

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

The first non-empty bucket might not be the first bucket.

@dyladan
Copy link
Member Author

dyladan commented Jun 16, 2022

The CI failure is in "check-codeowners" but it isn't at all obvious what that check is even doing to me

@dyladan
Copy link
Member Author

dyladan commented Jun 16, 2022

Load and stability tests have been running for ~3 hours. is that right?

@TylerHelmuth
Copy link
Member

TylerHelmuth commented Jun 16, 2022

Load and stability tests have been running for ~3 hours. is that right?

nah there is an issue. I recommend taking latest from main to force another round of actions.

@dyladan
Copy link
Member Author

dyladan commented Jun 16, 2022

I'm pretty sure the CI failures are unrelated

@TylerHelmuth TylerHelmuth added the ready to merge Code review completed; ready to merge by maintainers label Jun 20, 2022
@codeboten codeboten merged commit ccfee86 into open-telemetry:main Jun 20, 2022
@arminru arminru deleted the estimate-sum-tests branch June 21, 2022 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants