Skip to content

[Feature] Extend @CreateSpan or create new annotation @CreateExitSpan #2696

Description

@rddmoreira

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.

Metadata

Metadata

Assignees

Labels

agent-javacommunityIssues and PRs created by the community

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions