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

Passthrough CORS allowed origins #260

Merged
merged 7 commits into from
Aug 15, 2019
Merged

Conversation

backjo
Copy link
Contributor

@backjo backjo commented Aug 14, 2019

Addresses #243

@codecov-io
Copy link

codecov-io commented Aug 14, 2019

Codecov Report

Merging #260 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #260      +/-   ##
=========================================
- Coverage   73.13%   73.1%   -0.03%     
=========================================
  Files         110     110              
  Lines        6383    6385       +2     
=========================================
  Hits         4668    4668              
- Misses       1476    1477       +1     
- Partials      239     240       +1
Impacted Files Coverage Δ
receiver/opencensusreceiver/config.go 74.41% <0%> (-3.64%) ⬇️

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 52d0226...c13a0d1. Read the comment docs.

Copy link
Contributor

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @backjo!

Could you please add a test to config_test.go for the opencensusreceiver checking this value?

receiver/opencensusreceiver/config.go Show resolved Hide resolved
Copy link
Contributor

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @backjo ! LGTM.

Copy link
Contributor

@ccaraman ccaraman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small things looks great and thank you for addressing the issue!

receiver/opencensusreceiver/config.go Show resolved Hide resolved
Copy link
Member

@songy23 songy23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending @ccaraman's comments.

@@ -68,9 +68,6 @@ The full list of settings exposed for this receiver are documented [here](https:
with detailed sample configurations [here](https://github.com/open-telemetry/opentelemetry-service/blob/master/receiver/opencensusreceiver/testdata/config.yaml).

### Writing with HTTP/JSON
// TODO(ccaraman) The cors setting wasn't ported accidentally. In a follow up
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The next line is a bit outdated, like referring to OpenCensus. Could you reword it to mention Otel and make it clearer that the receiver handles both HTTP and gRPC.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit unclear here - is calling it the OpenCensus receiver incorrect? My understanding was that it's still being referred to as the OpenCensus receiver inside of Otel

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♀ apologies my coffee is fading and rereading it a few more times I see that I was thinking about it in the wrong context.
Ignore this comment!

@pjanotti pjanotti merged commit 0068d0a into open-telemetry:master Aug 15, 2019
@pjanotti
Copy link
Contributor

Thanks @backjo !

MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
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