Flare by Spatie
    • Error Tracking
    • Performance Monitoring
  • Pricing
  • Docs
  • Insights
  • Changelog
  • Back to Flare
  • Sign in
  • Try Flare for free
  • Error Tracking
  • Performance Monitoring
  • Pricing
  • Docs
  • Insights
  • Changelog
    • Back to Flare
    • Try Flare for free
    • Sign in
Flare Flare Laravel Laravel PHP PHP JavaScript JavaScript Protocol Protocol
  • General
  • Introduction
  • Resources
  • Events
  • Errors
  • Payload
  • Attributes
  • Sourcemaps
  • Traces
  • Payload
  • Lifecycle
  • Aggregations

Introduction

The Flare protocol defines how error reports, performance traces, and sourcemaps are sent to Flare's ingestion API. It is the contract between your application's SDK and the Flare backend.

Endpoints

Flare exposes three ingestion endpoints:

  • Errors for sending error reports with stacktraces, context attributes, and timeline events.
  • Traces for sending performance traces containing spans and span events.
  • Sourcemaps for uploading JavaScript sourcemaps to resolve bundled code in error stacktraces.

OpenTelemetry

The protocol is inspired by OpenTelemetry (OTEL). The traces endpoint is fully OTEL-compliant, so any OpenTelemetry-compatible exporter can send trace data to Flare without modification.

For error reporting, Flare uses a dedicated endpoint. OTEL doesn't define an error reporting format, but Flare's error protocol borrows concepts like resources, scopes, attributes, and events to keep things consistent across both endpoints.

Building an SDK

If you're building a Flare SDK for a new language or framework, implement the errors and traces endpoints and follow the attribute conventions documented in this section. These docs also serve as a good reference for AI agents tasked with implementing a Flare client library.

The current span types, attributes and aggregations are primarily designed around PHP and Laravel. If you're building a client for another language or framework, or if you'd like to see new aggregation types, reach out to us. We're happy to work with you on adding new container span types, aggregations, or attributes that make sense for your stack.

Solution providers Resources
  • On this page
  • Endpoints
  • OpenTelemetry
  • Building an SDK

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
Flare