Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
09-15-2023 05:59 AM
I am unable to create a data collector on my node.js application. I came across this doc " For the Node.js agent, you can create a method data collector only using the addSnapshotData() Node.js API, not the Controller UI as described here. See Node.js Agent API Reference".
I have 2 questions;
09-19-2023 10:43 AM
I've reached out to the Docs team looking for some clarification. I will report back when I have more info.
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
10-25-2023 01:59 PM
Sorry for the late reply, this is what I heard back from the Docs team.
The `key` is whatever you want to use to identify the custom data; the `value` is the data you want to capture and attach to the snapshot. The call to `txn.addSnapshotData()` can occur anywhere in your application where a transaction is in progress, either programmatically created via `appd.startTransaction(...)` or auto-discovered and retrieved via `appd.getTransaction(request)`. To add custom snapshot data to a transaction that's already being detected and reported, `getTransaction()` would be the required approach.
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form