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

SFx exporter: Implement summary type #2998

Merged
merged 2 commits into from
Apr 6, 2021
Merged

SFx exporter: Implement summary type #2998

merged 2 commits into from
Apr 6, 2021

Conversation

pmcollins
Copy link
Member

@pmcollins pmcollins commented Apr 5, 2021

Prometheus's Summary type was previously not implemented in the SFx exporter.
This change ports the SFx Smart Agent's implementation to the SFx exporter. It has
been end-to-end tested using a Prometheus server as a source of metrics
sent to an SFx backend.

Addresses #2944

Prometheus's Summary type was previously not implemented. This change
ports the SFx Smart Agent's implementation to the SFx exporter. It has
been end-to-end tested using a Prometheus server as a source of metrics
sent to an SFx backend.
@pmcollins pmcollins changed the title Implement summary type SFx exporter: Implement summary type Apr 5, 2021
@codecov
Copy link

codecov bot commented Apr 5, 2021

Codecov Report

Merging #2998 (bea374d) into main (a241ba8) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2998      +/-   ##
==========================================
+ Coverage   91.53%   91.54%   +0.01%     
==========================================
  Files         464      464              
  Lines       22799    22835      +36     
==========================================
+ Hits        20868    20905      +37     
+ Misses       1438     1437       -1     
  Partials      493      493              
Flag Coverage Δ
integration 69.02% <ø> (+0.06%) ⬆️
unit 90.51% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
exporter/signalfxexporter/translation/converter.go 96.46% <100.00%> (+1.19%) ⬆️

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 a241ba8...bea374d. Read the comment docs.

@pmcollins pmcollins marked this pull request as ready for review April 5, 2021 16:16
@pmcollins pmcollins requested a review from a team April 5, 2021 16:16
@bogdandrutu bogdandrutu merged commit cdbccd0 into open-telemetry:main Apr 6, 2021
pmatyjasek-sumo pushed a commit to pmatyjasek-sumo/opentelemetry-collector-contrib that referenced this pull request Apr 28, 2021
* Implement summary type

Prometheus's Summary type was previously not implemented. This change
ports the SFx Smart Agent's implementation to the SFx exporter. It has
been end-to-end tested using a Prometheus server as a source of metrics
sent to an SFx backend.

* Address PR feedback: use minimum precision
alexperez52 referenced this pull request in open-o11y/opentelemetry-collector-contrib Aug 18, 2021
* Add Filter func to all slices

Changed probabilisticsamplerprocessor and filterprocessor to show how we can simplify code. Other places can also be improved.

Benchmarks Before:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/filterprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkStrictFilter
BenchmarkStrictFilter-16    	    2613	    433773 ns/op	  270314 B/op	    7039 allocs/op
PASS

Process finished with the exit code 0
```

Benchmarks After:
```
goos: darwin
goarch: amd64
pkg: go.opentelemetry.io/collector/processor/filterprocessor
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkStrictFilter
BenchmarkStrictFilter-16    	   42373	     26623 ns/op	       0 B/op	       0 allocs/op
PASS

Process finished with the exit code 0
```

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

* Change Filter to RemoveIf

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.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.

6 participants