- 1 Minute to read
- Print
- DarkLight
- PDF
Ruby Custom Instrumentation
- 1 Minute to read
- Print
- DarkLight
- PDF
Configuration
Custom Instrumentation allows you to track classes and functions not natively supported in our Ruby Profiler. Include a config/stackify.json
file in your application.
Example:
{
"instrumentation": [
{
"class": "SampleClass1",
"method": "execute"
},
{
"class": "SampleClass2",
"method": "index"
}
]
}
Tracked Functions
Tracked Functions allows you to track a specific method call across requests, data will show up in your application dashboard under the Tracked Functions tab.
Example:
{
"instrumentation": [
{
"class": "SampleClass1",
"method": "execute",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "SampleClass2",
"method": "index",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
}
]
}