You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We are calling a Postgres DB and getting exceptions for the normal flow of things (we shouldn't, but do). In the current code we set the span status to ok when we catch the exception. But this is not reflected in the child span started by the agent auto instrumentation.
We would like these to be set as OK, but need to do this from the call site (the parent span). Could it be possible to add a context attribute to say something to the agent about expected results?
We're using Applicationinsights agent, which is a repackaged OT agent to my understanding.
Describe the solution you'd like
A way to update the child as ok. A less optimal way could be to instruct the agent to disable auto instrumentation for the following call.
Describe alternatives you've considered
I see there are options to disable a certain auto instrumentation and filter on classes etc, but this is actually more fine grained than that.
Additional context
No response
The text was updated successfully, but these errors were encountered:
That will probably work, but requires a lot of packaging (separate jar) and possibly project setup.
I am a big fan of being able to do things in code at the specific call site for these things. And I do believe this is a quite common issue when using the agent. It would probably benefit many of us to be able to do this in a simple way.
We will probably re-factor away from catching exceptions in our specific case, but I do see other cases where this could be useful too.
Note that this specific issue is mainly because of using auto-instrumentation from the agent, as that means I don't have access to the code sites that creates a child span of the one I have control over.
Is your feature request related to a problem? Please describe.
We are calling a Postgres DB and getting exceptions for the normal flow of things (we shouldn't, but do). In the current code we set the span status to ok when we catch the exception. But this is not reflected in the child span started by the agent auto instrumentation.
We would like these to be set as OK, but need to do this from the call site (the parent span). Could it be possible to add a context attribute to say something to the agent about expected results?
We're using Applicationinsights agent, which is a repackaged OT agent to my understanding.
Describe the solution you'd like
A way to update the child as ok. A less optimal way could be to instruct the agent to disable auto instrumentation for the following call.
Describe alternatives you've considered
I see there are options to disable a certain auto instrumentation and filter on classes etc, but this is actually more fine grained than that.
Additional context
No response
The text was updated successfully, but these errors were encountered: