Configure a Data Collector
To configure data collectors, you need the Configure Diagnostic Data Collectors permission. Follow these steps to configure a data collector:
- Identify the method on which to capture data. To do this, define the method signature and (optionally) filters based on the value of a code point in the method (such as, return value or argument).
- Specify the actual code point that serves as the source of the data.
- If the data collector applies to business transactions, then select the applicable business transactions.
These platform-specific considerations apply to data collectors:
-
For C/C++ SDK: Create a method data collector using the
appd_bt_add_user_data function()
, not the Controller UI as described here. See C/C++ SDK Reference. - For Node.js Agent: Create a method data collector using only the
addSnapshotData()
Node.js API, not the Controller UI as described here. See Node.js Agent API Reference. - For Python Agent, you can create data collectors by using:
- Python Agent API: Create a method data collector using the
add_snapshot_data()
Python Agent API. See Python Agent API Reference.Or, - Controller UI: Only the with a Class Name that option is valid. You cannot add a method data collector to a standalone Python function. Getter chains support the
access(user.name)
attribute,access(user['name])
key-value, andcalling(user.getName()
method.
- Python Agent API: Create a method data collector using the
-
For PHP method data collectors, only the with a Class Name that option is valid. You cannot add a method data collector to a standalone PHP function.