Adding custom data

Custom events

Events are identified by a string and can have an optional dictionary of parameters that will be stored and passed along with the report.

    // Without any additional parameters
    Bugsee.event("payment_processed");

    // ... or with additional custom parameters
    Bugsee.event("payment_processed", {
                    "amount": 125,
                    "currency": "USD"});

Custom traces

Traces may be useful when you want to trace how a specific variable or state changes over time right before the problem happens.

    // Manually set value of 15 to property named "credit_balance"
    // any time it changes
    Bugsee.trace("credit_balance", 15);