Error Capture Functionality Only Works for Explicit error Return Types
#537
-
|
It appears that when using the Could you please let us know if there are plans to address this issue? Alternatively, is there a workaround or recommended solution for users encountering this problem? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
👋 Thanks for reaching out and trying out orchestrion @korECM
Overall I don't see any problem to implement this. The code that does this type check is in dd-trace-go. There, the template helper
I believe the only thing possible right now is to either change the signature of your function or to use the standard dd-trace-go API to add errors on Spans. |
Beta Was this translation helpful? Give feedback.
👋 Thanks for reaching out and trying out orchestrion @korECM
Overall I don't see any problem to implement this. The code that does this type check is in dd-trace-go. There, the template helper
ResultOfType "error"only does a formal check of the error type but in theory we could implement something likeResultHasErrorusingtypes.Implementsto check for error types. Would this fit your usecase?