As @akochpaycor alluded to, you would need to be capturing this data already. Most agents have settings for including custom attributes, which could be specified as includes for transactions that contain those attributes. These would then show up in transaction. You can get them to show in error traces as well with similar configuration settings. You'll need to check the documentation for the specific configuration settings based on the language agent you're using.