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

Change some Prometheus remote write exporter functions to public and update link to design in README.md #1702

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

huyan0
Copy link
Member

@huyan0 huyan0 commented Aug 31, 2020

This PR changes the following methods in the Prometheus remote write exporter to public:

  • prometheusremotewriteexporter.prwExporter -> PrwExporter
  • prometheusremotewriteexporter.newExporter -> NewExporter
  • prometheusremotewriteexporter.pushMetrics -> PushMetric
  • prometheusremotewriteexporter.shutdown -> Shutdown

These changes allows the creation of a new exporter that use the Prometheus remote write exporter implementation.

The new exporter can have a custom configuration and factory, and pass the Prometheus remote write exporter a different http.Client that does custom authentication.

This PR also updates the link to the design PR in README.md to point to the merged DESIGN.md

Related PR: #1643

cc: @bogdandrutu @jmacd @alolita @huyan0

@huyan0 huyan0 force-pushed the public branch 2 times, most recently from aadbe22 to 88a9f1a Compare September 1, 2020 00:55
update design link
@codecov
Copy link

codecov bot commented Sep 1, 2020

Codecov Report

Merging #1702 into master will increase coverage by 0.02%.
The diff coverage is 98.78%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1702      +/-   ##
==========================================
+ Coverage   92.37%   92.39%   +0.02%     
==========================================
  Files         265      265              
  Lines       19909    19981      +72     
==========================================
+ Hits        18390    18462      +72     
- Misses       1090     1091       +1     
+ Partials      429      428       -1     
Impacted Files Coverage Δ
exporter/prometheusremotewriteexporter/helper.go 100.00% <ø> (ø)
internal/goldendataset/pict_metric_gen.go 93.54% <92.00%> (-2.61%) ⬇️
exporter/prometheusremotewriteexporter/exporter.go 95.94% <100.00%> (+5.37%) ⬆️
exporter/prometheusremotewriteexporter/factory.go 100.00% <100.00%> (ø)
internal/goldendataset/metric_gen.go 100.00% <100.00%> (ø)
service/defaultcomponents/defaults.go 85.45% <100.00%> (+0.26%) ⬆️
translator/internaldata/resource_to_oc.go 87.03% <0.00%> (-1.86%) ⬇️

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 f8c4ecb...edd93c0. Read the comment docs.

@bogdandrutu bogdandrutu merged commit 274fb4e into open-telemetry:master Sep 1, 2020
MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
…date docs (open-telemetry#1702)

* Rename WithDefaultSampler TracerProvider option to WithSampler

The term "DefaultSampler" comes from early ideas of this project where
there would be overriding samplers lower in the trace SDK. This
overriding does not exist and if it is going to be introduced in the
future the sampler associated with the TracerProvider is already scoped
based on that association (no need to scope with a name). This renames
the TracerProvider option to not include this anachronism.

* Update PR number in CHANGELOG

* Propagate rename

* Update defaults documentation for TracerProvider

* Update sdk/trace/provider.go

Co-authored-by: Steven E. Harris <seh@panix.com>

* Update sdk/trace/provider.go

Co-authored-by: Steven E. Harris <seh@panix.com>
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
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