Is your feature request related to a problem?
If we want a custom span to appear as a dependency on the APM server, we need to manually create it and manage it to the end.
This would be important if we want to show external services or other microservices as a dependency and have them on the dashboard showing the impact that they have.
Describe the solution you'd like
Extend the existing @CaptureScan flag with a boolean attribute called exit defaulting to false. If we send them as true, it would create an exit span instead of a regular one. The other option would be creating a new annotation called @CaptureExitScan.
Is your feature request related to a problem?
If we want a custom span to appear as a dependency on the APM server, we need to manually create it and manage it to the end.
This would be important if we want to show external services or other microservices as a dependency and have them on the dashboard showing the impact that they have.
Describe the solution you'd like
Extend the existing @CaptureScan flag with a boolean attribute called
exitdefaulting to false. If we send them as true, it would create an exit span instead of a regular one. The other option would be creating a new annotation called @CaptureExitScan.