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

[connector/spanmetrics] disable exemplars by default #24048

Merged
merged 4 commits into from
Jul 13, 2023

Conversation

povilasv
Copy link
Contributor

@povilasv povilasv commented Jul 9, 2023

Description:

Breaking change! Allows enabling / disabling Exemplars.

Link to tracking Issue:
#23872
Testing:

  • Added unit test
    Documentation:
  • Added docs

@github-actions github-actions bot requested review from albertteoh and kovrus July 9, 2023 19:43
@povilasv povilasv marked this pull request as ready for review July 9, 2023 19:52
@povilasv povilasv requested a review from a team July 9, 2023 19:52
@@ -55,6 +55,9 @@ type Config struct {

// Namespace is the namespace of the metrics emitted by the connector.
Namespace string `mapstructure:"namespace"`

// ExemplarConfig defines the configuration for exemplars.
ExemplarConfig ExemplarConfig `mapstructure:"exemplar"`
Copy link
Contributor

Choose a reason for hiding this comment

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

ExemplarConfig is already within the Config type. What do you think about renaming the field and type to just Exemplars?

There seems to be a mix of plural exemplars and singular exemplar in this PR. Which should it be? I vote for exemplars, but don't feel too strongly about it if folks prefer the singular variant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to exemplars

# exemplars disabled
spanmetrics/exemplars_disabled:
exemplars:
enabled: true
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment and name suggests exemplars are disabled, but it's enabled here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed to exemplars_enabled, thanks for noticing!

connector/spanmetricsconnector/README.md Outdated Show resolved Hide resolved
.chloggen/spanmetricsconnector-disabled.yaml Show resolved Hide resolved
.chloggen/spanmetricsconnector-disabled.yaml Outdated Show resolved Hide resolved
@povilasv
Copy link
Contributor Author

Thanks for review @albertteoh, updated based on your comments, ready for round two :)

@povilasv povilasv requested a review from albertteoh July 12, 2023 08:59
Copy link
Contributor

@albertteoh albertteoh left a comment

Choose a reason for hiding this comment

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

LGTM

@mx-psi mx-psi added the ready to merge Code review completed; ready to merge by maintainers label Jul 12, 2023
@mx-psi
Copy link
Member

mx-psi commented Jul 13, 2023

@povilasv can you rebase or merge main? We fixed some issues on CI that are showing up on this PR

@povilasv povilasv force-pushed the spanmetricsconnector-disabled branch from 5c0a399 to 334e1a3 Compare July 13, 2023 09:28
@mx-psi mx-psi merged commit 1005a5c into open-telemetry:main Jul 13, 2023
@github-actions github-actions bot added this to the next release milestone Jul 13, 2023
@povilasv povilasv deleted the spanmetricsconnector-disabled branch July 13, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connector/spanmetrics ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants