aws / aws/aws-xray-sdk-node

Suggestion: Some form of hook to add extra data before closing segment

Open
#252 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
280
Forks
157
PR merge metrics
No merged PRs in 30d

Description

I think it would be awesome if we could have some sort of hook before the segment is closed to add more information, for example add annotations about processing times etc.

I'm using restify and the server codebase is big so being able to hook into the segment before it's sent would save making drastic changes to the codebase to allow for the situation.

For example I want to include some simple stats like memory/cpu usage as part of the trace. People would probably find it useful to add other things here as well.

Currently I'm looking to fork the repo just so I can add this in to help troubleshoot production issues.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.