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

Pass version (& other app info) into components in params struct #1582

Merged

Conversation

james-bebbington
Copy link
Member

@james-bebbington james-bebbington commented Aug 18, 2020

Link to tracking Issue: #1559

Update service pipeline to pass ApplicationInfo into all new components as part of the CreateParams structs.

Example Usage: open-telemetry/opentelemetry-collector-contrib#758


// ApplicationStartInfo is the information that is logged at the application start and
// passed into each component. This information can be overridden in custom builds.
type ApplicationStartInfo struct {
Copy link
Member Author

Choose a reason for hiding this comment

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

If we are passing this info into each component, I thought it makes sense to move the struct here. Technically this is a breaking change, but very minor

@codecov
Copy link

codecov bot commented Aug 18, 2020

Codecov Report

Merging #1582 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1582      +/-   ##
==========================================
+ Coverage   91.86%   91.90%   +0.03%     
==========================================
  Files         254      255       +1     
  Lines       17486    17510      +24     
==========================================
+ Hits        16064    16092      +28     
+ Misses       1014     1012       -2     
+ Partials      408      406       -2     
Impacted Files Coverage Δ
component/componenttest/application_start_info.go 100.00% <100.00%> (ø)
service/builder/exporters_builder.go 78.10% <100.00%> (+0.49%) ⬆️
service/builder/extensions_builder.go 85.29% <100.00%> (+0.67%) ⬆️
service/builder/pipelines_builder.go 82.06% <100.00%> (+0.77%) ⬆️
service/builder/receivers_builder.go 75.15% <100.00%> (+0.93%) ⬆️
service/service.go 55.20% <100.00%> (ø)
translator/internaldata/resource_to_oc.go 91.48% <0.00%> (+4.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 79f22a8...5358f1d. Read the comment docs.

@james-bebbington james-bebbington changed the title Pass Version (& other Application info) into components in params struct Pass version (& other app info) into components in params struct Aug 18, 2020
component/component.go Outdated Show resolved Hide resolved
@james-bebbington james-bebbington force-pushed the version-in-components branch 2 times, most recently from 5e0b62a to f7ee02d Compare August 20, 2020 23:17
component/exporter.go Show resolved Hide resolved
service/service_test.go Outdated Show resolved Hide resolved
Collector automation moved this from In progress to Reviewer approved Aug 21, 2020
@bogdandrutu
Copy link
Member

Please rebase

@bogdandrutu bogdandrutu merged commit c8641ee into open-telemetry:master Aug 25, 2020
Collector automation moved this from Reviewer approved to Done Aug 25, 2020
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Collector
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants