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

Define a new API for components stability level to match extensions as well #5762

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

bogdandrutu
Copy link
Member

  • Deprecates current StabilityLevel(config.DataType) function from the base Factory which is not well suited for Extension.
  • Add new specific for each component Stability functions.

Signed-off-by: Bogdan [email protected]

@bogdandrutu bogdandrutu requested review from a team and jpkrohling July 29, 2022 23:48
@codecov
Copy link

codecov bot commented Jul 29, 2022

Codecov Report

❗ No coverage uploaded for pull request base (main@9a5a657). Click here to learn what that means.
The diff coverage is 91.52%.

@@           Coverage Diff           @@
##             main    #5762   +/-   ##
=======================================
  Coverage        ?   91.59%           
=======================================
  Files           ?      192           
  Lines           ?    11473           
  Branches        ?        0           
=======================================
  Hits            ?    10509           
  Misses          ?      770           
  Partials        ?      194           
Impacted Files Coverage Δ
component/component.go 96.00% <50.00%> (ø)
component/extension.go 86.66% <80.00%> (ø)
service/internal/pipelines/pipelines.go 95.12% <90.00%> (ø)
component/componenttest/nop_extension.go 100.00% <100.00%> (ø)
component/exporter.go 100.00% <100.00%> (ø)
component/processor.go 100.00% <100.00%> (ø)
component/receiver.go 100.00% <100.00%> (ø)
extension/ballastextension/factory.go 100.00% <100.00%> (ø)
extension/zpagesextension/factory.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bogdandrutu
Copy link
Member Author

Looking for feedback on this PR, before I will do the changelog and other changes.

@@ -31,7 +31,7 @@ const (

// NewFactory creates a factory for Z-Pages extension.
func NewFactory() component.ExtensionFactory {
return component.NewExtensionFactory(typeStr, createDefaultConfig, createExtension)
return component.NewExtensionFactoryWithStabilityLevel(typeStr, createDefaultConfig, createExtension, component.StabilityLevelBeta)
Copy link
Member

Choose a reason for hiding this comment

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

This is fine for this PR, but perhaps we should try to have consumers changed in a follow-up PR. This would help assert that the changes are indeed backward compatible. This did leave me wondering if a similar change wouldn't be needed in the other components from this repo, like the OTLP receiver/exporter.

Copy link
Contributor

Choose a reason for hiding this comment

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

Receivers, processors, and exporters have already had stability levels added in an earlier change. Extension were the only components left out from my earlier change

@bogdandrutu bogdandrutu force-pushed the stability branch 3 times, most recently from ac1a6b5 to 35c0a1b Compare August 3, 2022 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants