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

Export SaveSpan to enable multiplexing #1968

Merged
merged 1 commit into from
Dec 9, 2019
Merged

Export SaveSpan to enable multiplexing #1968

merged 1 commit into from
Dec 9, 2019

Conversation

albertteoh
Copy link
Contributor

Which problem is this PR solving?

Resolves #1967 where it is not possible to add new endpoints that call the same "SaveSpan" function. This is required for differentiating authenticated "external" endpoints from "internal" endpoints that do not require (and cannot provide) authentication.

Short description of the changes

Export the saveSpan function in cmd/collector/app/http_handler.go to SaveSpan which allows for embedding the APIHandler into a struct for extending.

* Allows additional HTTP endpoints to call the same SaveSpan function

Signed-off-by: Albert Teoh <albteo@uber.com>
@codecov
Copy link

codecov bot commented Dec 8, 2019

Codecov Report

Merging #1968 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1968   +/-   ##
=======================================
  Coverage   96.99%   96.99%           
=======================================
  Files         203      203           
  Lines       10061    10061           
=======================================
  Hits         9759     9759           
  Misses        264      264           
  Partials       38       38
Impacted Files Coverage Δ
cmd/collector/app/http_handler.go 100% <100%> (ø) ⬆️

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 c1bc28d...016e35b. Read the comment docs.

@yurishkuro yurishkuro merged commit 39d92c9 into jaegertracing:master Dec 9, 2019
@yurishkuro yurishkuro changed the title Export SaveSpan to enable multiplexing (#1967) Export SaveSpan to enable multiplexing Dec 9, 2019
@albertteoh albertteoh deleted the export-save-span branch December 14, 2019 21:48
@pavolloffay pavolloffay added this to the Release 1.16 milestone Dec 17, 2019
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.

Enable multiplexing of "/api/traces" endpoint
3 participants