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

Make InstrumentationLibrary<signal>ToScope functions unexported #5164

Merged

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Apr 7, 2022

The functions were added in the the latest release. They are intended for the internal use only and shouldn't be exported.

This change is applied without backward compatibility because the functions accept an argument of internal type and cannot be used outside of collector/model. If we keep backward compatibility here, we would also have to export these functions additionally in the new structure defined in #5087.

Closes: #5163

@dmitryax dmitryax requested review from a team and mx-psi April 7, 2022 00:01
@dmitryax dmitryax force-pushed the hide-otlp-compatibility-functions branch from cb130d9 to 28cc732 Compare April 7, 2022 00:03
@codecov
Copy link

codecov bot commented Apr 7, 2022

Codecov Report

Merging #5164 (4b75c6a) into main (c51773a) will not change coverage.
The diff coverage is 96.22%.

@@           Coverage Diff           @@
##             main    #5164   +/-   ##
=======================================
  Coverage   90.33%   90.33%           
=======================================
  Files         182      185    +3     
  Lines       11000    11000           
=======================================
  Hits         9937     9937           
  Misses        837      837           
  Partials      226      226           
Impacted Files Coverage Δ
model/otlpgrpc/logs.go 48.00% <50.00%> (-12.00%) ⬇️
model/otlpgrpc/traces.go 48.00% <50.00%> (-12.00%) ⬇️
model/internal/otlp/logs.go 100.00% <100.00%> (ø)
model/internal/otlp/metrics.go 100.00% <100.00%> (ø)
model/internal/otlp/traces.go 100.00% <100.00%> (ø)
model/otlp/json_unmarshaler.go 79.31% <100.00%> (ø)
model/otlpgrpc/metrics.go 52.17% <100.00%> (-11.77%) ⬇️

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 c51773a...4b75c6a. Read the comment docs.

The functions were added in the the latest version. They are intended for the internal use only and shouldn't be exported.
@dmitryax dmitryax force-pushed the hide-otlp-compatibility-functions branch from 28cc732 to 4b75c6a Compare April 7, 2022 00:05
@codeboten codeboten merged commit e8d131d into open-telemetry:main Apr 7, 2022
@dmitryax dmitryax deleted the hide-otlp-compatibility-functions branch April 7, 2022 17:22
Nicholaswang pushed a commit to Nicholaswang/opentelemetry-collector that referenced this pull request Jun 7, 2022
…-telemetry#5164)

The functions were added in the the latest version. They are intended for the internal use only and shouldn't be exported.
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.

InstrumentationLibrary<signal>ToScope functions shouldn't be exported
4 participants