Metadata
You can supply extra context on errors and performance traces using metadata. This can help to add information that is not already part of the request parameters, session data or request headers.
Types of metadata
To add more complex data structures to error and performance traces, different types of metadata can be used. Some of these are set by our instrumentations automatically and can be overwritten if needed.
These are the kind of extra data that can be set.
- Request parameters
- If you are using a supported web framework or library, AppSignal will store the request query parameters, request payload body or background job arguments for you automatically.
- Request session data
- If you are using a supported web framework, AppSignal will store the request session data for you automatically.
- Request headers
- If you are using a supported web framework, AppSignal will store the request headers for you automatically.
- Function parameters
- Function parameters are the parameters that background jobs or scripts start with.
- Custom data
- You can use custom data if additional details you want to send are not related to the above three types. AppSignal does not automatically save anything in custom data unless you specifically tell it.