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

Use otlp request in wrapper, hide members in the wrapper #2692

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Mar 13, 2021

Tested in contrib and was able to access InternalWrapper.Orig,
with this change this is no longer possible.

Also removes one extra allocation for the request object when
using otlp receiver/exporter since we keep the initial pointer around.

Signed-off-by: Bogdan Drutu bogdandrutu@gmail.com

@codecov
Copy link

codecov bot commented Mar 13, 2021

Codecov Report

Merging #2692 (cf7f4bd) into main (03904de) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2692      +/-   ##
==========================================
- Coverage   91.81%   91.80%   -0.01%     
==========================================
  Files         290      290              
  Lines       15559    15551       -8     
==========================================
- Hits        14285    14277       -8     
  Misses        876      876              
  Partials      398      398              
Impacted Files Coverage Δ
consumer/pdata/log.go 100.00% <100.00%> (ø)
exporter/fileexporter/file_exporter.go 82.35% <100.00%> (-0.99%) ⬇️
exporter/otlpexporter/otlp.go 70.27% <100.00%> (-0.40%) ⬇️
internal/otlp_wrapper.go 100.00% <100.00%> (ø)
receiver/otlpreceiver/logs/otlp.go 100.00% <100.00%> (ø)

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 03904de...cf7f4bd. Read the comment docs.

@bogdandrutu bogdandrutu force-pushed the logswrapper branch 3 times, most recently from 263b23f to b997288 Compare March 13, 2021 20:35
@bogdandrutu bogdandrutu reopened this Mar 16, 2021
Tested in contrib and was able to access InternalWrapper.Orig,
with this change this is no longer possible.

Also removes one extra allocation for the request object when
using otlp receiver/exporter since we keep the initial pointer around.

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@bogdandrutu bogdandrutu merged commit df9f565 into open-telemetry:main Mar 17, 2021
@bogdandrutu bogdandrutu deleted the logswrapper branch March 17, 2021 14:49
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants