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

Spike: solution for automatically disabling non-wrapper instrumentation with too many errors #2090

Open
nr-ahemsath opened this issue Nov 20, 2023 · 1 comment

Comments

@nr-ahemsath
Copy link
Member

Agent instrumentation that is implemented as a wrapper (which is most agent instrumentation) has a couple of features that help protect the stability of customer's applications. See

  1. Any exceptions thrown by a wrapper are caught by the WrapperService automatically so they don't affect the customer's app
  2. If too many exceptions are thrown by a wrapper, it will be prevented from running again for the lifetime of that agent instance.

We have other instrumentation, however, that isn't implemented as a wrapper. Rather, a wrapper intercepts some configuration method in a library, and the agent "installs" some other component - a piece of middleware, a Serilog sink, a MassTransit filter, etc. Unhandled exceptions which occur in this kind of instrumentation can and will affect the customer's app because there is no generic try/catch protecting it.

A generic solution for both protecting customers apps from exceptions in this kind of instrumentation, and the ability to have the agent notice such exceptions and disable the offending instrumentation is desired. The outcome of the spike should be a document describing a proposed implementation, or else what was tried and rejected and why. A stretch goal would be stories for implementing the solution with estimates.

@workato-integration
Copy link

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

No branches or pull requests

1 participant