Documentation Index

Fetch the complete documentation index at: https://docs.stackify.com/llms.txt

Use this file to discover all available pages before exploring further.

Ruby Custom Instrumentation

Prev Next

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}}"
    }
  ]
}