Flashduty Docs
中文EnglishRoadmapAPI官网控制台
中文EnglishRoadmapAPI官网控制台
  1. Error Tracking
  • Introduction
  • On-call
    • Getting Started
      • Quick start
      • FAQ
      • Product Comparison
    • Incidents
      • What is an Incident
      • View Incidents
      • Handle Incidents
      • Escalations and Assignments
      • Custom Fields
      • Custom Actions
      • Alert Noise Reduction
      • Past Incidents
      • Outlier Incidents
    • Configure On-call
      • Channels
      • Integrate Alerts
      • Alert Noise Reduction
      • Escalation Rules
      • Label Enrichment
      • Schedules
      • Templates
      • Service Calendars
      • Preferences
      • Alert Routing
      • Silence and Inhibition
      • Filters
      • Notification Bots
      • Alert Pipeline
    • Advanced Features
      • Referencing Variables
      • Dynamic Assignment
      • Insights
    • Integrations
      • Alerts integration
        • Standard Alert Integration
        • Email Integration
        • Nightingale/FlashCat Integration
        • Prometheus Integration
        • Grafana Integration
        • Zabbix Integration
        • Uptime Kuma Integration
        • Alibaba Cloud ARMS Integration
        • Alibaba Cloud Monitor CM Event Integration
        • Alibaba Cloud Monitor CM Metrics Integration
        • Alibaba Cloud SLS Integration
        • AWS CloudWatch Integration
        • Azure Monitor Integration
        • Baidu Cloud BCM Integration
        • Huawei Cloud CES Integration
        • Influxdata Integration
        • Open Falcon Integration
        • PagerDuty Integration
        • Tencent BlueKing Integration
        • Tencent Cloud CLS Integration
        • Tencent Cloud Monitor CM Integration
        • Tencent Cloud EventBridge
        • OceanBase Integration
        • Graylog Integration
        • Skywalking Integration
        • Sentry Integration
        • Jiankongbao Integration
        • AWS EventBridge Integration
        • Dynatrace Integration
        • Huawei Cloud LTS Integration
        • GCP Integration
        • Splunk Alert Events Integration
        • AppDynamics Alert Integration
        • SolarWinds Alert Events Integration
        • Volcengine CM Alert Events Integration
        • Volcengine CM Event Center Integration
        • Volcengine TLS Integration
        • OpManager Integration
        • Meraki Integration
        • Keep Integration
        • ElastAlert2 Alert Integration
        • StateCloud Alert Events
        • Guance Alert Events
        • Zilliz Alert Events
        • Huawei Cloud APM Alerts
        • zstack integration
      • Change integration
        • Standard Change Event
        • Jira Issue Events
      • IM integration
        • Feishu (Lark) Integration Guide
        • Dingtalk Integration
        • WeCom Integration
        • Slack Integration
        • Microsoft Teams Integration
      • Single Sign-On
        • Authing Integration
        • Keycloak Guide
        • OpenLDAP Guide
      • Webhooks
        • Alert webhook
        • Incident webhook
        • Costom action
  • RUM
    • Getting Started
      • Introduction
      • Quick start
      • FAQ
    • Applications
      • Applications
      • SDK Integration
      • Advanced Configuration
      • Analysis Dashboard
    • Performance Monitoring
      • Overview
      • Metrics
      • Performance Analysis
      • Performance Optimize
    • Error Tracking
      • Overview
      • Error Reporting
      • Issues
      • Source Mapping
      • Error Grouping
      • Issue States
      • Issue Alerting
    • Others
      • Terminology
      • Data Collection
      • Data Security
  • Platform
    • Teams and Members
    • Permissions
    • Single Sign-On
  • Terms
    • Terms of Service
    • User Agreement/Privary Policy
    • SLA
    • Data Security
  1. Error Tracking

Error Grouping

Grouping Process#

When a new error event occurs, Flashduty uses a three-step grouping strategy to group errors into issues, effectively reducing the number of errors that need to be processed. The grouping process is as follows:
1.
Fingerprint Matching: Obtains the fingerprint of the error event and compares it with the fingerprints of existing issues.
2.
Automatic Merging: If the new event shares the same fingerprint with an existing issue, it is automatically assigned to that issue.
3.
Similarity Analysis: If no fingerprint match is found, machine learning models analyze error similarity, assigning the event to the most similar issue or creating a new issue if similarity is too low.

Default Fingerprinting#

Flashduty enables error grouping by default, without requiring additional configuration to start working. The Browser SDK automatically collects error data and performs grouping. Below are the basic settings for web environments:
1.
Integrate Flashduty Browser SDK
Include the Flashduty Browser SDK in your HTML file:
2.
Initialize SDK
When initializing the SDK, specify the application ID and environment:
3.
Fingerprint Calculation
When an error event doesn't carry a fingerprint, Flashduty automatically calculates a fingerprint based on the following error properties:
service: The service where the error occurred.
env: The environment where the error occurred.
error.type: The type classification of the error.
error.message: The descriptive text of the error.
提示
To improve grouping accuracy, Flashduty removes variable attributes from stack frames, such as version numbers, IDs, dates, and other dynamic parameters.

Custom Fingerprinting#

If default grouping doesn't meet your needs, you can take complete control of error grouping behavior by providing custom fingerprints. Custom fingerprints take precedence over default fingerprints.
1.
Manually Add Custom Fingerprints
When manually reporting errors, add custom fingerprints through addError:
2.
Use beforeSend Callback
Dynamically set fingerprints through the beforeSend callback:
提示
Custom fingerprints must be string type.
Errors with the same fingerprint in the same service will be grouped into the same issue.
Errors from different services will be grouped into different issues even if they have the same fingerprint.
The beforeSend callback can also be used to filter out irrelevant errors (such as third-party script errors).

Web-Specific Considerations#

SourceMap Integration:
Upload sourcemap files to decode compressed stack traces, ensuring that error stacks in aggregated issues can be mapped to original source code.
Example: Use flashcat-cli to upload sourcemaps:
Third-Party Script Errors:
By default, Flashduty filters out errors from browser extensions or third-party scripts (such as those with network origin) to reduce noise.
You can further customize filtering rules through beforeSend:

Viewing and Analyzing Grouping Results#

On the Flashduty platform, navigate to "Error Tracking" to view the list of aggregated issues. Each issue includes:
Error messages and stack traces (if sourcemaps were uploaded, original source code locations will be displayed).
User session timeline.
Metadata (such as browser type, version number).

Next Steps#

Issue Status

添加官方技术支持微信

在这里,获得使用上的任何帮助,快速上手FlashDuty

微信扫码交流
上一页
Source Mapping
下一页
Issue States
Built with