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

Add AppendEmpty and deprecate Append for slices #2970

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

bogdandrutu
Copy link
Member

This change helps with initialization:

  • Lots of places where we used Resize(1). Some left to limit the PR.
  • Lots of places where New followed by Append, this is equivalent with AppendEmpty.

Append is marked as deprecated, but we need to evaluate if we can change all calls to AppendEmpty,
or we need to revert the deprecation. The current goal is to remove it if possible.

Signed-off-by: Bogdan Drutu [email protected]

This change helps with initialization:
* Lots of places where we used Resize(1). Some left to limit the PR.
* Lots of places where New followed by Append, this is equivalent with AppendEmpty.

Append is marked as deprecated, but we need to evaluate if we can change all calls to AppendEmpty,
or we need to revert the deprecation. The current goal is to remove it if possible.

Signed-off-by: Bogdan Drutu <[email protected]>
@bogdandrutu bogdandrutu requested a review from a team April 20, 2021 22:45
@codecov
Copy link

codecov bot commented Apr 20, 2021

Codecov Report

Merging #2970 (161560a) into main (4431693) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2970      +/-   ##
==========================================
+ Coverage   91.62%   91.64%   +0.01%     
==========================================
  Files         312      312              
  Lines       15364    15388      +24     
==========================================
+ Hits        14078    14102      +24     
  Misses        880      880              
  Partials      406      406              
Impacted Files Coverage Δ
consumer/pdata/generated_common.go 100.00% <100.00%> (ø)
consumer/pdata/generated_log.go 100.00% <100.00%> (ø)
consumer/pdata/generated_metrics.go 100.00% <100.00%> (ø)
consumer/pdata/generated_trace.go 100.00% <100.00%> (ø)
consumer/simple/metrics.go 98.66% <100.00%> (-0.06%) ⬇️
exporter/prometheusexporter/accumulator.go 99.00% <100.00%> (ø)
processor/batchprocessor/splitlogs.go 93.54% <100.00%> (-0.21%) ⬇️
processor/batchprocessor/splittraces.go 93.54% <100.00%> (-0.21%) ⬇️
processor/filterprocessor/metric_index.go 100.00% <100.00%> (ø)
translator/internaldata/oc_to_metrics.go 91.12% <100.00%> (-0.21%) ⬇️
... and 1 more

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 4431693...161560a. Read the comment docs.

@bogdandrutu bogdandrutu merged commit b8dccfc into open-telemetry:main Apr 20, 2021
@bogdandrutu bogdandrutu deleted the appendempty branch April 20, 2021 23:35
bogdandrutu added a commit to bogdandrutu/opentelemetry-collector that referenced this pull request Apr 21, 2021
bogdandrutu added a commit that referenced this pull request Apr 21, 2021
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
…en-telemetry#2970)

Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.4.0 to 1.7.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md)
- [Commits](go-sql-driver/mysql@v1.4.0...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

2 participants