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

newrelicexporter: multi-tenant support for sending trace data + perf enhancements #2481

Conversation

alanwest
Copy link
Member

@alanwest alanwest commented Feb 28, 2021

  • Adds APIKeyHeader config option enabling reading New Relic API key from request header.
  • spans_url_override and metrics_url_override has been renamed to spans_host_override and metrics_host_override to reflect the fact that you only need to specify host[:port] when overriding these endpoints.
  • Updates reference to newrelic-telemetry-sdk-go which includes a number of performance improvements.
  • Make communication with New Relic's Trace API directly rather than through the harvester provided through the newrelic-telemetry-sdk-go.

@a-feld @nrcventura @jack-berg

@codecov
Copy link

codecov bot commented Mar 2, 2021

Codecov Report

Merging #2481 (1ac203e) into main (fad1892) will increase coverage by 0.04%.
The diff coverage is 96.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2481      +/-   ##
==========================================
+ Coverage   91.06%   91.11%   +0.04%     
==========================================
  Files         417      418       +1     
  Lines       20935    21013      +78     
==========================================
+ Hits        19065    19145      +80     
+ Misses       1407     1406       -1     
+ Partials      463      462       -1     
Flag Coverage Δ
integration 69.22% <ø> (ø)
unit 89.98% <96.55%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
exporter/newrelicexporter/newrelic.go 94.44% <94.64%> (+8.73%) ⬆️
exporter/newrelicexporter/config.go 100.00% <100.00%> (ø)
exporter/newrelicexporter/errors.go 100.00% <100.00%> (ø)
exporter/newrelicexporter/factory.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 fad1892...1ac203e. Read the comment docs.

@a-feld a-feld force-pushed the alanwest/newrelicexporter-perf-and-multi-tenant-support branch from ab904a4 to b96213a Compare March 2, 2021 15:47
@alanwest alanwest marked this pull request as ready for review March 3, 2021 00:53
@alanwest alanwest requested a review from a team March 3, 2021 00:53
@bogdandrutu bogdandrutu merged commit a039417 into open-telemetry:main Mar 4, 2021
@alanwest alanwest deleted the alanwest/newrelicexporter-perf-and-multi-tenant-support branch March 5, 2021 05:06
This was referenced Mar 15, 2021
kisieland referenced this pull request in kisieland/opentelemetry-collector-contrib Mar 16, 2021
…s should not accept anymore data on shutdown (#2481). (#2504)

Clarifies that components should not accept anymore data on shutdown 

Closes #2481
pmatyjasek-sumo referenced this pull request in pmatyjasek-sumo/opentelemetry-collector-contrib Apr 28, 2021
…enhancements (#2481)

* Multi-tenant support for sending trace data + perf enhancements

Co-authored-by: Allan Feldman <[email protected]>
Co-authored-by: Jack Berg <[email protected]>
Co-authored-by: Chris Ventura <[email protected]>

* Add errors abstraction.

* Fix SpansURLOverride usage

* Clear your mind must be, if you are to fix lint errors!

* Fix lint issues.

* Update mock endpoint to use the same status as the real endpoint

* Fix linting error in newrelic.go by using gofmt -s

* Add license header to errors.go

* Add environment variable allowing metric support to be disabled

* Revert "Add environment variable allowing metric support to be disabled"

This reverts commit c8c540f995e8aec571c0e5d51456ae27b41ffcc9.

* Convert to host and insecure flags.

* Fix formatting.

* Default exporter config

* Revert change to createMetricsExporter

* Make insecure flags private.

* Update newrelic-telemetry-sdk-go reference to v0.5.2

* go mod tidy

* Add test coverage

Co-authored-by: Chris Ventura <[email protected]>

* Fix bad url test

* go mod tidy

* Update README

* Revert go.sum

Co-authored-by: Allan Feldman <[email protected]>
Co-authored-by: Jack Berg <[email protected]>
Co-authored-by: Chris Ventura <[email protected]>
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
* Add section in docs for initializing a tracer

* Apply suggestions from code review

Co-authored-by: Anthony Mirabella <[email protected]>

* Change weird incomplete sentence

* update some of the bullets to be a tad less opinionated

* Rename section so it's open to different ways to acquire a tracer

* Remove guidance as it is orthogonal

* Apply suggestions from code review

Co-authored-by: Tyler Yahn <[email protected]>

Co-authored-by: Anthony Mirabella <[email protected]>
Co-authored-by: Tyler Yahn <[email protected]>
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.

5 participants