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

Add support for custom segments #982

Open
foresturquhart opened this issue Oct 30, 2024 · 3 comments
Open

Add support for custom segments #982

foresturquhart opened this issue Oct 30, 2024 · 3 comments
Labels
enhancement New feature or request PM PM to review against project priorities.

Comments

@foresturquhart
Copy link

Summary

There is currently no way to instrument custom segments within a PHP application. This feature is present in other New Relic agents, so it was surprising to me that this feature is absent.

Desired Behavior

I should be able to call, for example, newrelic_segment_start('example-segment');, run logic or call functions, and then call newrelic_segment_end(); and have this be displayed in the New Relic APM.

Possible Solution

I propose that newrelic_segment_start() and newrelic_segment_end() be implemented, adding this functionality.

Additional context

We have various complex logical processes in our application which would benefit from being able to categorise certain sets of logic under segments.

@foresturquhart foresturquhart added the enhancement New feature or request label Oct 30, 2024
@workato-integration
Copy link

@zsistla zsistla added the PM PM to review against project priorities. label Oct 30, 2024
@zsistla
Copy link
Contributor

zsistla commented Oct 30, 2024

Hi @foresturquhart

Please look at newrelic_start_transaction and newrelic_end_transaction to see if they provide the functionality you are looking for.

@foresturquhart
Copy link
Author

@zsistla Unfortunately we're already using these to start and end the transaction for the HTTP request or command execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PM PM to review against project priorities.
Projects
None yet
Development

No branches or pull requests

2 participants