Skip to content

Instantly share code, notes, and snippets.

@ElliottLandsborough
Last active April 16, 2020 11:24
Show Gist options
  • Save ElliottLandsborough/89b6b3d5c9e1fc53c88cc8afb5a00d72 to your computer and use it in GitHub Desktop.
Save ElliottLandsborough/89b6b3d5c9e1fc53c88cc8afb5a00d72 to your computer and use it in GitHub Desktop.
Stackify custom instrumentation example for PHP
{
"instrumentation": [
{
"class": "Illuminate\\Support\\Collection",
"method": "map",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "collect",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "flatten",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "unique",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "values",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "toArray",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "reject",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "filter",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "first",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "push",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
},
{
"class": "Illuminate\\Support\\Collection",
"method": "whereNotIn",
"trackedFunction": true,
"trackedFunctionName": "{{ClassName}}.{{MethodName}}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment