Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Conversation

@greut
Copy link
Contributor

@greut greut commented Jan 7, 2021

Using Kong as our API Gateway, we'd like to prevent external actor to pollute the traces. It's currently done using the request-transformer plugin (Kong/kong-plugin-request-transformer#32) but implies lowering the PRIORITY of this zipkin.

By setting header_type to ignore, it won't read any tracing headers from the incoming request and start a new one using the default_header_type value (or falling back to b3)

@CLAassistant
Copy link

CLAassistant commented Jan 7, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@kikito kikito left a comment

Choose a reason for hiding this comment

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

Hello @greut , thank you for this PR.

Do you think you could add some tests for it? See how other options are tested in the spec/ folder.

@greut
Copy link
Contributor Author

greut commented Feb 9, 2021

Do you think you could add some tests for it? See how other options are tested in the spec/ folder.

the handler is not tested so far; I can take a look into it but it requires some work.

@jcchavezs
Copy link
Contributor

jcchavezs commented Feb 13, 2021 via email

@greut
Copy link
Contributor Author

greut commented Feb 14, 2021

which is an abstraction that always unsample traces

@jcchavezs Thanks, however I dont' quite understand how it works from the link you've provided. The goal is not to act on the sampling strategy but on the trace capture one. Kong being exposed to the internet, we don't want it to accept incoming traces.

https://www.w3.org/TR/trace-context/#denial-of-service

@kikito kikito added the enhancement New feature or request label Apr 14, 2021
@kikito
Copy link
Member

kikito commented Sep 6, 2021

Thanks for this PR. I merged it with small modifications (including a test) in #125

I would implement this as a request sampler

That could be an option at the Zipkin level, but not at the Kong plugin level - that would require us to include source code as part of the plugin configuration, which is something we are not prepared to support for now. There are considerations about security and permissions to be had, and that would drag this discussion for even longer. For now, the presented feature is good enough.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants