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

Enrich proxy spans with filter data #21959

Closed
jcchavezs opened this issue Jun 30, 2022 · 7 comments
Closed

Enrich proxy spans with filter data #21959

jcchavezs opened this issue Jun 30, 2022 · 7 comments
Labels
area/http_filter enhancement Feature requests. Not bugs or questions. stale stalebot believes this issue/PR has not been touched recently

Comments

@jcchavezs
Copy link
Contributor

jcchavezs commented Jun 30, 2022

I was looking at envoy traces generated both when you run a filter and when you don’t and I see traces are pretty much the same except for the fact that when a filter blocks a request, no upstream_cluster/upstream_cluster.name is set (which makes sense). Also there is no clue on the duration of the filter execution (at least in traces) which keeps you blind about the duration of the filter execution. Finally, AFAIU filters have no way to access the current span to set attributes or annotations (e.g. modsecurity won’t tell you what rule caused the blocking).

In summary what I’d like to see as outcome would be:

  • traces display filter duration either as annotations in the trace (subspans might be overkilling I think) filters can enrich span attributes
  • Have an attribute about which filter blocked the request.

In the future I'd like it to be included in the WASM ABI too.

@jcchavezs jcchavezs added enhancement Feature requests. Not bugs or questions. triage Issue requires triage labels Jun 30, 2022
@wbpcode wbpcode added area/http_filter and removed triage Issue requires triage labels Jul 5, 2022
@wbpcode
Copy link
Member

wbpcode commented Jul 5, 2022

traces display filter duration either as annotations in the trace (subspans might be overkilling I think) filters can enrich span attributes

Sound great. But it would bring some additional overhead. 🤔

Have an attribute about which filter blocked the request.

May be response flag or response detail string is better for this requirement?

@github-actions
Copy link

github-actions bot commented Aug 4, 2022

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Aug 4, 2022
@github-actions
Copy link

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

@jcchavezs
Copy link
Contributor Author

This issue has been closed by a bot with zero context about the status nor use case.

@phlax
Copy link
Member

phlax commented Aug 19, 2022

it was closed due to inactivity - i can reopen it now - but you will need to either implement this yourself, or find someone willing to do so, as well as get it approved

@phlax phlax reopened this Aug 19, 2022
@phlax phlax removed the stale stalebot believes this issue/PR has not been touched recently label Aug 19, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Sep 18, 2022
@github-actions
Copy link

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/http_filter enhancement Feature requests. Not bugs or questions. stale stalebot believes this issue/PR has not been touched recently
Projects
None yet
Development

No branches or pull requests

3 participants