scout_apm v1.0.7 ScoutApm.Context

Public API for easily adding Context to a running request.

These functions must be called from the process handling the request, since the correct underlying TrackedRequest is looked up that way.

Link to this section Summary

Functions

Returns :ok on success Returns {:error, {:arg, reason}} on failure

A user-specific bit of context. Gets special treatment in the UI, but otherwise follows the same rules as the add function.

Link to this section Functions

Link to this function

add(key, value)

Returns :ok on success Returns {:error, {:arg, reason}} on failure

Link to this function

add_user(key, value)

A user-specific bit of context. Gets special treatment in the UI, but otherwise follows the same rules as the add function.