Flare by Spatie
    • Error Tracking
    • Performance Monitoring
    • Logs Coming soon
  • Pricing
  • Docs
  • Insights
  • Changelog
  • Back to Flare ⌘↵ Shortcut: Command or Control Enter
  • Sign in
  • Try Flare for free
  • Error Tracking
  • Performance Monitoring
  • Logs Coming soon
  • Pricing
  • Docs
  • Insights
  • Changelog
    • Back to Flare ⌘↵ Shortcut: Command or Control Enter
    • Try Flare for free
    • Sign in
Flare Flare Laravel Laravel PHP PHP JavaScript JavaScript React React Vue Vue Protocol Protocol
  • General
  • Introduction
  • Entry points
  • Resources
  • Attribute Formats
  • Events
  • Errors
  • Payload
  • Attributes
  • Sourcemaps
  • Traces
  • Payload
  • Lifecycle
  • Aggregations
  • Logs
  • Payload

Attribute Formats

The traces and logs endpoints use the OpenTelemetry typed attribute format for all attributes on resources, scopes, spans, span events, and log records. The log record body field also uses this format.

The errors endpoint does not use this format. Error attributes are flat key-value objects (e.g. { "http.method": "GET" }). See the error attributes page for details.

Attribute Array

Attributes are represented as an array of key-value objects:

[
    {
        "key": "http.method",
        "value": {
            "stringValue": "GET"
        }
    },
    {
        "key": "http.status_code",
        "value": {
            "intValue": 200
        }
    },
    {
        "key": "error",
        "value": {
            "boolValue": true
        }
    }
]

Each object has a key (string) and a value object containing exactly one typed field.

Value Types

Field JSON Type Description
stringValue string String value
intValue number Integer value
doubleValue number Floating point value
boolValue boolean Boolean value
arrayValue object List of values
kvlistValue object Key-value list (associative data)

This same value format is also used for the log record body field. Most log entries use stringValue for plain text messages, but structured data can be represented using kvlistValue or arrayValue.

arrayValue

A list of typed values:

{
    "key": "tags",
    "value": {
        "arrayValue": {
            "values": [
                { "stringValue": "web" },
                { "stringValue": "production" }
            ]
        }
    }
}

kvlistValue

An associative list of key-value pairs, where each value is itself a typed value:

{
    "key": "http.request.headers",
    "value": {
        "kvlistValue": {
            "values": [
                { "key": "Content-Type", "value": { "stringValue": "application/json" } },
                { "key": "Accept", "value": { "stringValue": "text/html" } }
            ]
        }
    }
}
Resources Events
  • On this page
  • Attribute Array
  • Value Types

Catch errors and fix slowdowns with Flare, the full-stack application monitoring platform for Laravel, PHP & JavaScript.

  • Platform
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Support
  • Resources
  • Insights
  • Newsletter
  • Changelog
  • Documentation
  • Affiliate program
  • uptime status badge Service status
  • Terms of use
  • DPA
  • Privacy & cookie Policy
Made in by
Flare