GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Product
  • View Product Pricing
  • Infrastructure Monitoring
  • Custom Metrics
  • Network Monitoring
  • End User Device Monitoring
  • Container Monitoring
  • Kubernetes Autoscaling
  • Serverless Monitoring
  • Cloud Cost Management
  • Storage Management
  • GPU Monitoring
  • Application Performance Monitoring
  • Universal Service Monitoring

This view

  • Original page
  • New address

GeezerVison is showing docs.datadoghq.com — JavaScript Feature Flags

For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/feature_flags/client/javascript.md. A documentation index is available at /llms.txt.
    Home Docs API
  • Agents
  • Essentials
    • Getting Started
      • Agent
      • API
      • APM Tracing
      • Containers
        • Autodiscovery
        • Datadog Operator
      • Dashboards
      • Database Monitoring
      • Datadog
      • Datadog Site
      • DevSecOps
      • Incident Management
      • Integrations
        • AWS
        • Azure
        • Google Cloud
        • OCI
        • Terraform
        • Stripe
      • Internal Developer Portal
      • Logs
      • Monitors
      • Notebooks
      • OpenTelemetry
      • Profiler
      • Search
        • Product-Specific Search
      • Session Replay
      • Security
        • App and API Protection
        • Cloud Security
        • Cloud SIEM
        • Code Security
      • Serverless for AWS Lambda
      • Software Delivery
        • CI Visibility
        • Feature Flags
        • Test Optimization
        • Test Impact Analysis
        • MCP Tools
      • Synthetic Monitoring and Testing
        • API Tests
        • Browser Tests
        • Mobile App Tests
        • Continuous Testing
        • Private Locations
      • Tags
        • Assigning Tags
        • Unified Service Tagging
        • Using Tags
      • Teams
      • Workflow Automation
      • Access for Enterprises
        • Choosing Your Datadog Topology
        • Permissions and Feature Access
        • Assigning Users to Roles and Teams
        • Protecting Assets
        • Protecting Sensitive Data
        • Credential Management
        • Creating Access Policies
        • Sharing Across Organizations
        • Example Implementations
      • Learning Center
      • Support
    • Glossary
    • Standard Attributes
    • Guides
    • Agent
      • Architecture
      • IoT
      • Supported Platforms
        • AIX
        • Linux
        • Ansible
        • Chef
        • Heroku
        • MacOS
        • Puppet
        • SaltStack
        • SCCM
        • Windows
        • From Source
      • Log Collection
        • Log Agent tags
        • Advanced Configurations
        • Proxy
        • Transport
        • Multi-Line Detection
      • Configuration
        • Commands
        • Configuration Files
        • Log Files
        • Status Page
        • Network Traffic
        • Proxy Configuration
        • FIPS Compliance
        • Dual Shipping
        • Secrets Management
        • Infrastructure Modes
        • Agent Data Plane
      • Fleet Automation
        • Fleet View
        • Access Control
        • Configure Agents
        • Supported datadog.yaml Fields
        • Configure Agent Integrations
        • Configure Custom Logs
        • Modify Tags
        • Configuration Policies
        • Upgrade Agents
        • Upgrade SDKs
        • OpenTelemetry Collectors
      • Troubleshooting
        • Container Hostname Detection
        • Debug Mode
        • Agent Flare
        • Agent Check Status
        • NTP Issues
        • Permission Issues
        • Integrations Issues
        • Site Issues
        • Autodiscovery Issues
        • Windows Container Issues
        • Agent Runtime Configuration
        • High CPU or Memory Consumption
        • Missing Log Bytes
      • Guides
      • Data Security
    • Integrations
      • Guides
    • Client SDKs
      • Setup
      • Advanced Configuration
      • Data Collected
      • Integrated Libraries
      • Troubleshooting
    • Extend Datadog
      • Authorization
        • OAuth2 in Datadog
        • Authorization Endpoints
      • DogStatsD
        • Datagram Format
        • Unix Domain Socket
        • High Throughput Data
        • Data Aggregation
        • DogStatsD Mapper
      • Custom Checks
        • Writing a Custom Agent Check
        • Writing a Custom OpenMetrics Check
      • Integrations
        • Build an Integration with Datadog
        • Create an Agent-based Integration
        • Create an API-based Integration
        • Create a Log Pipeline
        • Integration Assets Reference
        • Build a Marketplace Offering
        • Create an Integration Dashboard
        • Create a Monitor Template
        • Create a Cloud SIEM Detection Rule
        • Install Agent Integration Developer Tool
      • Service Checks
        • Submission - Agent Check
        • Submission - DogStatsD
        • Submission - API
      • Community
        • Libraries
      • Guides
    • OpenTelemetry
      • Getting Started
      • Feature Compatibility
      • Instrument Your Applications
        • DDOT SDKs
        • Upstream OpenTelemetry SDKs
      • Send Data to Datadog
        • DDOT Collector
        • Upstream OpenTelemetry Collector
        • Direct OTLP Ingest
        • Datadog Agent
      • Semantic Mapping
        • Resource Attribute Mapping
        • Metrics Mapping
        • Infrastructure Host Mapping
        • Hostname Mapping
        • Service-entry Spans Mapping
      • Ingestion Sampling
      • Correlate Data
        • Logs and Traces
        • Metrics and Traces
        • RUM and Traces
        • DBM and Traces
      • Integrations
        • Apache Metrics
        • Apache Spark Metrics
        • Collector Health Metrics
        • Datadog Extension
        • OpAMP Extension
        • Docker Metrics
        • HAProxy Metrics
        • Host Metrics
        • IIS Metrics
        • Kafka Metrics
        • Kubernetes Metrics
        • MongoDB Metrics
        • MySQL Metrics
        • PostgreSQL Metrics
        • NGINX Metrics
        • Podman Metrics
        • RabbitMQ Metrics
        • Redis Metrics
        • Runtime Metrics
        • SQL Server Metrics
        • Trace Metrics
      • Fleet Automation
      • Troubleshooting
      • Guides and Resources
        • OpenTelemetry Demo Application
        • Produce Delta Temporality Metrics
        • Instrument Unsupported Runtimes
        • Migration Guides
      • Reference
        • Terms and Concepts
        • Trace Context Propagation
        • Trace IDs
        • OTLP Metric Types
    • Administrator's Guide
      • Getting Started
      • Plan
      • Build
      • Run
    • API
    • Command Line
    • MCP Server
      • Setup
      • MCP Tools
      • Code Execution
    • Partners
    • Datadog Mobile App
      • Enterprise Configuration
      • Datadog for Intune
      • Shortcut Configurations
      • Push Notifications
      • Widgets
      • Guides
    • DDSQL Reference
      • Data Directory
    • Remote Configuration
    • Cloudcraft (Standalone)
      • Getting Started
      • Account Management
      • Components: Common
      • Components: Azure
      • Components: AWS
      • Advanced
      • FAQ
      • API
        • AWS Accounts
        • Azure Accounts
        • Blueprints
        • Budgets
        • Teams
        • Users
  • In The App
    • Dashboards
      • Configure
      • Dashboard List
      • Widgets
        • Configuration
        • Widget Types
      • Querying
      • Functions
        • Algorithms
        • Arithmetic
        • Count
        • Exclusion
        • Interpolation
        • Rank
        • Rate
        • Regression
        • Rollup
        • Smoothing
        • Telemetry Source
        • Timeshift
        • Beta
      • Graph Insights
        • Metric Correlations
        • Investigate Anomalies
        • Watchdog Explains
      • Template Variables
      • Overlays
      • Annotations
      • Guides
      • Sharing
        • Shared Dashboards
        • Widget Share URLs
        • Secure Embedded Dashboards
        • Share Graphs
        • Scheduled Reports
    • Notebooks
      • Analysis Features
        • Getting Started
      • Markdown Format
      • API Guide
      • Guides
    • DDSQL Editor
    • Reference Tables
    • Sheets
      • Functions and Operators
      • Guides
    • Monitors and Alerting
      • Draft Monitors
      • Configure Monitors
      • Monitor Templates
      • Monitor Types
      • Notifications
        • Notification Rules
        • Variables
      • Downtimes
        • Examples
      • Manage Monitors
        • Search Monitors
        • Check Summary
      • Monitor Status
        • Status Graphs
        • Status Events
      • Monitor Settings
      • Monitor Quality
      • Guides
    • Service Level Objectives
      • Monitor-based SLOs
      • Metric-based SLOs
      • Time Slice SLOs
      • Error Budget Alerts
      • Burn Rate Alerts
      • Guides
    • Metrics
      • Custom Metrics
        • Metric Type Modifiers
        • Historical Metrics Ingestion
        • Submission - Agent Check
        • Submission - DogStatsD
        • Submission - Powershell
        • Submission - API
      • OpenTelemetry Metrics
        • OTLP Metric Types
        • Query OpenTelemetry Metrics
      • Metrics Types
      • Distributions
      • Overview
      • Explorer
        • Metrics Units
      • Catalog
      • Advanced Filtering
      • Nested Queries
      • Reference Table Joins with Metrics
      • Derived Metrics
      • Metrics Without Limits™
      • Guides
    • Watchdog
      • Alerts
      • Impact Analysis
      • RCA
      • Insights
      • Faulty Deployment Detection
      • Faulty Cloud & SaaS API Detection
    • Bits AI
      • Bits Agent Builder
        • Improve agents using traces
      • Bits Autonomous Operations
        • Bits Detection
        • Bits Investigation
        • Bits Remediation
      • Bits Chat
        • Use Bits Chat
        • Bits CLI
      • Bits Code
        • Setup
        • Automations
        • Code Channels in Slack
      • Bits Data Analysis
      • Bits Database Optimization
      • Bits Live Debugger
      • Bits Maintenance
        • Setup
        • Campaigns and Plans
        • Upgrade Instructions and Memories
      • Bits Release
      • Bits Security Analyst
      • Bits AI Settings
        • Skills Library
        • AI Credit Limits
    • Internal Developer Portal
      • Catalog
        • Set Up
        • Entity Model
        • Troubleshooting
      • Scorecards
        • Scorecard Configuration
        • Custom Rules
        • Using Scorecards
      • Self-Service Actions
        • Software Templates
      • Engineering Reports
        • Teams Performance
        • Reliability Overview
        • Catalog Health
        • Scorecards Performance
        • DORA Metrics
        • Custom Reports
      • Homepage
      • Campaigns
      • External Provider Status
      • Integrations
      • Use Cases
        • API Management
        • Cloud Cost Management
        • App and API Protection
        • Developer Onboarding
        • Dependency Management
        • Production Readiness
        • Incident Response
        • CI Pipeline Visibility
      • Onboarding Guide
    • Error Tracking
      • Explorer
      • Issue States
      • Regression Detection
      • Suspected Causes
      • Error Grouping
      • Bits Investigation
      • Monitors
      • Identify Suspect Commits
      • Auto Assign
      • Issue Team Ownership
      • Track Browser and Mobile Errors
        • Browser Error Tracking
        • Collecting Browser Errors
        • Mobile Crash Tracking
        • Replay Errors
        • Real User Monitoring
        • Logs
      • Track Backend Errors
        • Getting Started
        • Exception Replay
        • Capturing Handled Errors
        • APM
        • Logs
      • Manage Data Collection
      • Ticketing Systems
        • Jira
        • Linear
        • Work Management
      • Link Pull Requests
      • Troubleshooting
      • Guides
    • Change Tracking
      • Change Types
        • Feature Flags
    • Event Management
      • Ingest Events
      • Pipelines and Processors
        • Aggregation Key Processor
        • Arithmetic Processor
        • Date Remapper
        • Category Processor
        • Grok Parser
        • Lookup Processor
        • Remapper
        • Service Remapper
        • Status Remapper
        • String Builder Processor
        • VRL Processor
      • Explorer
        • Searching
        • Navigate the Explorer
        • Customization
        • Facets
        • Attributes
        • Notifications
        • Analytics
        • Saved Views
      • Triage Inbox
      • Correlation
        • Configuration
        • Triaging & Notifying
        • Analytics
        • Maintenance Windows
      • Guides
  • Incident Response
    • Incident Management
      • Incident Investigation
        • Declare an Incident
        • Describe an Incident
        • Response Team
        • Notification
        • Timeline
        • Incident AI
        • Meeting Summaries and Transcripts
      • Setup and Configuration
        • Information
        • Property Fields
        • Transition Forms
        • Responder Roles
        • Automations
        • Notification Rules
        • Templates
        • Variables
      • Post Incident
        • Follow-ups
        • Postmortems
      • Analytics and Reporting
      • Integrations
        • Slack
        • Microsoft Teams
        • Google Chat
        • Jira
        • ServiceNow
        • Status Pages
        • Atlassian Statuspage
        • Google Meet
        • Zoom
      • Guides
    • On-Call
      • Onboard a Team
      • Pages
        • Live Call Routing
        • Cross-org Paging
      • Routing Rules
      • Escalation Policies
      • Schedules
      • Handover automation
      • Notification Preferences
        • Supported Countries
      • Analytics
      • Integrations
        • ServiceNow
        • Jira
      • Guides
    • Status Pages
      • Components
      • Notices
      • Notice Templates
      • Subscriptions
    • Work Management
      • Projects
        • Settings
      • Create a Work Item
      • Customization
      • View and Manage Work Items
      • Notifications and Integrations
      • Work Item Automation Rules
      • Work Item Approvals
      • AI Tools
        • Custom Agents
      • Troubleshooting
  • Actions & Remediations
    • Bits Agent Builder
      • Improve agents using traces
    • Workflow Automation
      • Build Workflows
      • Access and Authentication
      • Trigger Workflows
      • Variables and parameters
      • Actions
        • Workflow Logic
      • Save and Reuse Actions
      • Test and Debug
      • Expressions
      • Track Workflows
      • Limits
      • MCP Tools
    • Apps
      • Embed Apps
    • App Builder
      • Build Apps
      • Access and Authentication
      • Queries
      • Variables
      • Events
      • Components
        • Custom Charts
        • React Renderer
        • Tables
        • Reusable Modules
      • JavaScript Expressions
      • Embed App Builder Apps
        • Input Parameters
      • Save and Reuse Actions
    • Datastores
      • Create and Manage Datastores
      • Use Datastores with Apps and Workflows
      • Automation Rules
      • Access and Authentication
    • Forms
      • Components
      • Responses
      • Guides
    • Action Catalog
      • Connections
        • HTTP Request
        • Integration Connections
        • Google Workspace
        • GitHub App Connection
        • Private Action Credentials
      • Execution Policies
      • Private Actions
        • Getting Started
        • Set Up in the Datadog Agent
        • Set Up a Standalone Runner
        • Enrollment and Ownership
        • Authorize Private Actions
        • Run a Script
        • Reference
  • Infrastructure
    • Cloudcraft
      • Overlays
        • Infrastructure
        • Observability
        • Security
        • Cloud Cost Management
        • Monitors
        • APM
    • Resource Catalog
      • Cloud Resources Schema
      • Policies
      • Resource Changes
    • Universal Service Monitoring
      • Setup
      • Guides
    • End User Device Monitoring
      • Setup
        • macOS
        • Windows
    • Hosts
      • Host List
    • Containers
      • Container Monitoring
        • Containers Explorer
        • Container Images Explorer
        • Kubernetes Explorer
        • Amazon ECS Explorer
      • Autoscaling
        • Manifest Reference
        • Cluster
      • Docker-based
        • APM
        • Log collection
        • Tag extraction
        • Integrations
        • Prometheus
        • Data Collected
      • Kubernetes
        • Installation
        • OpenTelemetry
        • Migrate to the Datadog Operator
        • Further Configuration
        • Distributions
        • APM
        • App and API Protection
        • Log collection
        • Tag extraction
        • Integrations
        • Prometheus & OpenMetrics
        • Control plane monitoring
        • Data collected
        • kubectl Plugin
        • Datadog CSI Driver
        • Data security
      • Cluster Agent
        • Setup
        • Commands & Options
        • Cluster Checks
        • Endpoint Checks
        • Admission Controller
      • Amazon ECS
        • APM
        • Log collection
        • Tag extraction
        • Data collected
        • Managed Instances
        • AWS Fargate with ECS
      • Datadog Operator
        • Migrate to the Datadog Operator
        • Advanced Install
        • Configuration
        • Datadog Agent Profiles
        • Providers
        • Custom Checks
        • Data Collected
        • Secret Management
        • DatadogDashboard CRD
        • DatadogGenericResource CRD
        • DatadogMonitor CRD
        • DatadogSLO CRD
        • DatadogBYOCCluster CRD
      • Troubleshooting
        • Duplicate hosts
        • Cluster Agent
        • Cluster Checks
        • HPA and Metrics Provider
        • Admission Controller
        • Log Collection
      • Guides
    • Processes
      • Increase Process Retention
    • Serverless
      • AWS
        • AWS Lambda
        • AWS Step Functions
        • AWS Fargate
      • Azure
        • Azure App Service
        • Azure Container Apps
        • Azure Database & Messaging Services
        • Azure Functions
        • Azure Logic Apps
      • Google
        • Cloud Run Containers
        • Cloud Run Jobs (Preview)
        • Cloud Run Functions
        • Cloud Run Functions (1st generation)
      • Libraries & Integrations
      • Glossary
      • Guides
    • Network Monitoring
      • Cloud Network Monitoring
        • Setup
        • Network Health
        • Network Analytics
        • Network Map
        • Guides
        • Supported Cloud Services
        • Terms and Concepts
      • DNS Monitoring
      • Network Device Monitoring
        • Setup
        • Summary Page
        • Integrations
        • Profiles
        • Configuration Management
        • Maps
        • SNMP Metrics Reference
        • Troubleshooting
        • Guides
        • Terms and Concepts
      • NetFlow Monitoring
        • Monitors
      • Network Path
        • Setup
        • List View
        • Path View
        • Autonomous Systems View
        • On-Demand Tests
        • Monitors
        • Guides
        • Terms and Concepts
      • L1 to L7 Map
    • Storage Management
      • Amazon S3
      • Google Cloud Storage
      • Azure Blob Storage
  • Cloud Cost
    • Cloud Cost
      • Datadog Costs
      • Setup
        • Permissions
        • AWS
        • Azure
        • Google Cloud
        • Oracle
        • SaaS and AI Costs
        • Custom
      • Tags
        • Tag Explorer
        • Multisource Querying
      • Allocation
        • Tag Pipelines
        • Container Cost Allocation
        • BigQuery Costs
        • Custom Allocation Rules
      • AI Costs
        • AI Gateway Allocation
      • Reporting
        • Scheduled Reports
        • Explorer
        • Dashboard
      • Recommendations
        • Cost Optimization Automations
        • Notifications
        • Custom Recommendations
      • Planning
        • Budgets
        • Forecasting
        • Commitment Programs
        • Outcomes
      • Cost Changes
        • Monitors
        • Anomalies
        • Real-Time Costs
      • Cloud Cost Skill
  • Application Performance
    • APM
      • APM Terms and Concepts
      • Application Instrumentation
        • Single Step Instrumentation
        • Manually managed SDKs
        • Code-based Custom Instrumentation
        • Dynamic Instrumentation
        • Library Compatibility
        • Library Configuration
        • Configuration at Runtime
        • Trace Context Propagation
        • Serverless Application Tracing
        • Proxy Tracing
        • Span Tag Semantics
        • Span Links
      • APM Metrics Collection
        • Trace Metrics
        • Runtime Metrics
      • Trace Pipeline Configuration
        • Ingestion Mechanisms
        • Ingestion Controls
        • Adaptive Sampling
        • Processing Pipelines
        • Generate Metrics
        • Trace Retention
        • Usage Metrics
      • Correlate Traces with Other Telemetry
        • Correlate DBM and Traces
        • Correlate Logs and Traces
        • Correlate RUM and Traces
        • Correlate Synthetics and Traces
        • Correlate Profiles and Traces
      • Trace Explorer
        • Search Spans
        • Query Syntax
        • Trace Queries
        • Span Tags and Attributes
        • Span Visualizations
        • Trace View
        • Tag Analysis
      • Recommendations
      • Code Origin for Spans
      • Service Observability
        • Catalog
        • Service Page
        • Resource Page
        • Deployment Tracking
        • Service Map
        • Inferred Services
        • Service Remapping Rules
        • Env Remapping Rules
        • Resource Renaming Rules
        • Tag Enrichment
        • Integration Override Removal
        • APM Monitors
      • Endpoint Observability
        • Explore Endpoints
        • Monitor Endpoints
      • Live Debugger
        • Bits Live Debugger
        • Sensitive Data Scrubbing
      • Error Tracking
        • Issue States
        • Error Tracking Explorer
        • Error Grouping
        • Stack Traces
        • Monitors
        • Identify Suspect Commits
        • Exception Replay
        • Troubleshooting
      • Data Security
      • Guides
      • Troubleshooting
        • Agent Rate Limits
        • Agent APM metrics
        • Agent Resource Usage
        • Correlated Logs
        • PHP 5 Deep Call Stacks
        • .NET diagnostic tool
        • APM Quantization
        • Go Compile-Time Instrumentation
        • Tracer Startup Logs
        • Tracer Debug Logs
        • Connection Errors
        • SDK Configurations
    • Continuous Profiler
      • Enabling the Profiler
        • Supported Language and SDK Versions
      • Profile Types
      • Profile Visualizations
      • Investigate Slow Traces or Endpoints
      • Compare Profiles
      • Automated Analysis
      • Profiler Troubleshooting
        • Java
        • Python
        • Go
        • Ruby
        • Node.js
        • .NET
        • PHP
        • C/C++/Rust
        • Full-Host Profiler
      • Guides
    • Database Monitoring
      • Set Up DBM
        • Setup Architectures
        • Agent Integration Overhead
        • Postgres
        • MySQL
        • MariaDB
        • SQL Server
        • Oracle
        • MongoDB
        • ClickHouse
        • IBM Db2
        • Amazon DocumentDB
        • Provision the Agent with Terraform
      • Data Collected
      • Explore DBM
        • Database Hosts
        • Query Metrics
        • Custom Metrics
        • Query Samples
        • Database Schemas
        • Recommendations
      • Connecting DBM and Traces
      • Database Investigations in Bits Chat
      • Bits Database Optimization
      • Database Monitoring Workbench
      • Database Monitoring PR Reviews
      • Role Observability
      • Troubleshooting
      • Guides
    • Data Streams Monitoring
      • Setup
      • Kafka Console
        • Setup
        • Monitors and Automation
      • Schema Tracking
      • Dead Letter Queues
      • Metrics and Tags
  • Data Observability
    • Data Observability Overview
    • Data Catalog
    • Lineage
    • Quality Monitoring
      • Data Warehouses
        • Snowflake
        • Databricks
        • BigQuery
        • Redshift
        • ClickHouse Cloud
        • Microsoft Fabric Warehouse
      • Data Lakes
        • AWS Glue
        • Amazon Athena Query History
      • Transactional Databases
        • PostgreSQL
      • ELT Integrations
        • Airbyte
        • Fivetran
        • Hightouch
      • Business Intelligence Integrations
        • Hex
        • Looker
        • Tableau
        • Sigma
        • Metabase
        • Power BI
      • Monitors
      • Guides
    • Jobs Monitoring
      • Databricks
        • Private Link Connectivity
      • Airflow
        • Logs Correlation
        • Troubleshooting DAG
        • Upgrade OpenLineage Provider on Amazon MWAA
      • dbt
      • Spark on Kubernetes
      • Spark on Amazon EMR
      • Spark on Google Dataproc
      • AWS Glue
      • Azure Data Factory
      • Custom Jobs (OpenLineage)
        • Datadog Agent for OpenLineage Proxy
      • Monitors
    • CI/CD
    • Integration Overhead
  • Digital Experience
    • Journey Monitoring
      • Configure Journeys
      • Suggested Journeys
      • Variants
      • Journey Overview Page
      • Map
      • Status
      • Details Report
      • Roles and Permissions
    • Real User Monitoring
      • Application Monitoring
        • Browser
        • Android and Android TV
        • Apple Platforms
        • Flutter
        • Kotlin Multiplatform
        • C / C++
        • React Native
        • Electron
        • Roku
        • Unity
        • .NET MAUI
      • Platform
        • Dashboards
        • Monitors
        • Generate Custom Metrics
      • Exploring RUM Data
        • Search RUM Events
        • Search Syntax
        • Group
        • Visualize
        • Events
        • Export
        • Saved Views
        • Watchdog Insights for RUM
      • Correlate RUM with Other Telemetry
        • Correlate LLM with RUM
        • Correlate Logs with RUM
        • Correlate Profiling with RUM
        • Correlate Synthetics with RUM
        • Correlate Traces with RUM
      • Feature Flag Tracking
        • Setup
        • Using Feature Flags
      • Error Tracking
        • Explorer
        • Issue States
        • Track Browser Errors
        • Track Mobile Errors
        • Error Grouping
        • Monitors
        • Identify Suspect Commits
        • Troubleshooting
      • Bits in RUM
        • Optimize Performance
        • Investigate Regressions
        • Bits Chat in RUM
      • RUM Without Limits
        • Metrics
        • Retention Filters
        • Retention Quotas
      • Operations Monitoring
      • Managed Archive
      • Export Pipelines
      • Ownership of Views
      • Remote Configuration
      • Guides
      • Data Security
    • Synthetic Testing and Monitoring
      • API Testing
        • HTTP
        • SSL
        • DNS
        • WebSocket
        • TCP
        • UDP
        • ICMP
        • GRPC
        • Error codes
      • Multistep API Testing
      • Browser Testing
        • Recording Steps
        • Browser Testing Results
        • Advanced Options for Steps
        • Authentication in Browser Testing
      • Network Path Testing
        • Terms and Concepts
      • Mobile Application Testing
        • Testing Steps
        • Testing Results
        • Advanced Options for Steps
        • Supported Devices
        • Restricted Networks
        • Settings
      • Test Suites
      • Bits Testing
      • Goal-Based Testing
      • Platform
        • Dashboards
        • Metrics
        • Test Coverage
        • Private Locations
        • Connect APM
        • Connect RUM
        • Settings
        • Scheduled Downtime
      • Exploring Synthetics Data
        • Overview Page
        • Saved Views
        • Results Explorer
      • Guides
      • Notifications
        • Template Variables
        • Conditional Alerting
        • Advanced Notifications
        • Integrate with Statuspage
      • Troubleshooting
      • Data Security
    • Continuous Testing
      • Local and Staging Environments
        • Testing Multiple Environments
        • Testing With Proxy, Firewall, or VPN
      • CI/CD Integrations
        • Configuration
        • Azure DevOps Extension
        • CircleCI Orb
        • GitHub Actions
        • GitLab
        • Jenkins
        • Bitrise (Upload Application)
        • Bitrise (Run Tests)
      • Settings
      • Results Explorer
      • Metrics
      • Guides
      • Troubleshooting
    • Experiments
      • Create Experiment Metrics
        • Sync Metrics from YAML
      • Standardize Experiments with Protocols
      • Plan and Launch Experiments
      • Experiment Approvals
      • Read Experiment Results
      • Experiment Diagnostics
      • Concepts
        • Subject Types
        • Exposure SQL Models
        • Identity Resolution
        • SQL Template Variables
        • Cumulative Impact
        • Holdouts
      • Statistics
        • Analysis Methods
        • CUPED: Variance Reduction Technique
        • Minimum Detectable Effects
        • Multiple Testing Correction
        • Global Lift
        • Lift and Interval Calculations
        • Expected Regret and EVSI
      • Break Out Metrics by Property
      • Troubleshooting
      • Experiments MCP Tools
      • Guides
    • Product Analytics
      • Charts
        • Chart Basics
        • Funnel
        • Journey Paths
        • Pathways
        • Retention
        • Analytics
      • Dashboards
        • Dashboard Reporter Agent
      • Segments
      • Action Management
      • Managing Profiles
        • Identity Resolution
      • Tracking Plans
      • Data Collected
        • Server-Side Events
      • Export Pipelines
      • Usability
      • Guides
      • Troubleshooting
    • Session Replay
      • Setup
      • Privacy Options
      • Developer Tools
      • Playlists
      • Heatmaps
      • Impact on App Performance
      • Troubleshooting
      • Guides
  • Software Delivery
    • CI/CD Optimization
      • CI Visibility
        • AWS CodePipeline
        • Azure Pipelines
        • Buildkite
        • CircleCI
        • Codefresh
        • GitHub Actions
        • GitLab
        • Jenkins
        • TeamCity
        • Other CI Providers
        • Custom Commands
        • Custom Tags and Measures
      • Test Optimization
        • Language Setup
        • Network Settings
        • Tests in Containers
        • Correlate Logs and Tests
        • Browser Tests with RUM
        • Swift Tests with RUM
      • Explorer
        • Search Syntax
        • Search Pipeline Executions
        • Export
        • Saved Views
        • Search and Manage
      • Features
        • Auto Test Retries
        • Automatic Job Retries
        • Developer Workflows
        • Early Flake Detection
        • Flaky Management
        • Test Impact Analysis
        • Test Parallelization
        • Legacy Features
      • Monitors
      • Guides
      • Troubleshooting
        • CI Pipelines
        • Tests
    • CD Visibility
      • Deployment Visibility
        • Argo CD
        • CI Providers
      • Explore Deployments
        • Search Syntax
        • Facets
        • Saved Views
      • Features
        • Code Changes Detection
        • Rollback Detection
      • Monitors
    • Deployment Gates
      • Setup
        • Inline Gates
        • Preconfigured Gates
    • Code Coverage
      • Setup
      • Configuration
      • Coverage Calculation
      • Monorepo Support
      • Flags
      • Carryforward
      • Data Collected
      • Dashboards
    • PR Gates
      • Setup
    • Delivery Performance
      • DORA Metrics
        • Setup
        • Change Failure Detection
        • DORA Metrics Calculation
        • Data Collected
      • AI Impact
        • Setup
    • Feature Flags
      • Client SDKs
        • Android and Android TV
        • Angular
        • Dart and Flutter
        • iOS and tvOS
        • JavaScript
        • React
        • React Native
        • Unity
      • Server SDKs
        • .NET
        • Go
        • Java
        • Node.js
        • PHP
        • Python
        • Ruby
      • Concepts
        • Approvals
        • Cloning Feature Flags
        • Configuration Sources
        • Distribution Channels
        • Environments
        • Evaluation Context
        • Evaluation Results
        • Evaluation Tester
        • Experiments
        • Feature Flag Graphs
        • Flag Evaluation and Experimentation Opt-Out
        • Flag History
        • Flag Key Obfuscation
        • Monthly Flag Configuration Requests
        • Permissions and Access Control
        • Saved Filters
        • Scheduled Rollouts
        • Stale Flags
        • Targeting Attributes
        • Targeting Rules and Filters
        • Traffic Splitting and Randomization
        • Variants and Flag Types
        • Workflow Automation
      • Use Cases
        • Progressive Rollouts and Canaries
        • Kill Switches
        • Dynamic Configuration
      • Implementation Patterns
        • Local Flag Overrides
        • OpenTelemetry
        • Serverless
        • Browser Rules-Based Evaluation
      • Browser Developer Extension
      • MCP Server
      • Guides
  • Developer Integrations
    • Source Code Integration
      • Source Code Management Providers
      • Service Mapping
        • .NET
        • Go
        • Java
        • Node.js
        • PHP
        • Python
        • Ruby
        • OpenTelemetry
        • Other Languages
      • Resource Mapping
      • Code Snippets and Context Links
      • PR Comments
    • IDE Plugins
      • JetBrains IDEs
        • Code Security
      • VS Code & Cursor
        • Code Security
        • Code Insights
  • Security
    • Security Overview
      • Detection Rules
        • OOTB Rules
      • Notifications
        • Rules
        • Variables
      • Suppressions
      • Automation Pipelines
        • Modify Severity Level
        • Mute
        • Set Due Date Rules
        • Add to Security Inbox
        • Create Tickets
      • Security Inbox
      • Remediation Inbox
      • Threat Intelligence
      • Events Forwarding
      • Audit Trail
      • Access Control
      • Ticketing Integrations
      • Assignee Management
      • Research Feed
      • Severity Adjustment
      • Security MCP Tools
      • Guides
    • Cloud SIEM
      • Ingest and Enrich
        • Content Packs
        • Bring Your Own Threat Intelligence
        • Muted Indicators
        • Open Cybersecurity Schema Framework
      • Detect and Monitor
        • OOTB Rules
        • Custom Detection Rules
        • Migrate Detection Rules
        • Version History
        • Suppressions
        • Dynamic Severity
        • Historical Jobs
        • MITRE ATT&CK Map
      • Triage and Investigate
        • Investigate Security Signals
        • Entity Risks
        • User Inventory
        • IOC Explorer
        • Investigator
        • Group Signals into Cases
      • Respond and Report
        • Security Operational Metrics
      • Guides
      • Data Security
    • Code Security
      • Static Code Analysis (SAST)
        • Setup
        • Configuration
        • GitHub Actions
        • Generic CI Providers
        • AI-Enhanced Static Code Analysis
        • SAST Custom Rule Creation Tutorial
        • SAST Custom Rules
        • SAST Custom Rules Guide
        • Static Code Analysis (SAST) rules
      • Software Composition Analysis (SCA)
        • Static Setup
        • Runtime Setup
        • Configuration
        • Supply Chain Firewall (SCFW)
        • Library Inventory
        • CVE Explorer
      • Secret Scanning
        • GitHub Actions
        • Generic CI Providers
        • Configuration
        • Secret Validation
      • Runtime Code Analysis (IAST)
        • Setup
        • Security Controls
      • Infrastructure as Code (IaC) Security
        • Setup
        • Configuration
        • GitHub Actions
        • Rules
        • IaC Custom Rules
        • IaC Custom Rule Reference
      • Prioritize Findings with Runtime Context
      • Developer Tool Integrations
        • Pull Request Comments
        • PR Gates
        • IDE Plugins
        • Git Hooks
        • MCP Server
        • SCFW GitHub Action
      • Troubleshooting
      • Guides
    • Cloud Security
      • Setup
        • Supported Deployment Types
        • Agentless Scanning
        • Deploy the Agent
        • Container Image Scanning in CI/CD
        • Set Up CloudTrail Logs
        • Link Images to Dockerfiles
        • Set Up without Infrastructure Monitoring
        • Deploy using Cloud Integrations
      • Security Graph
      • Misconfigurations
        • Manage Compliance Rules
        • Create Custom Rules
        • Manage Compliance Posture
        • Explore Misconfigurations
        • Kubernetes Security Posture Management
      • Identity Risks
      • Vulnerabilities
        • Hosts and Containers Compatibility
      • Crown Jewels
      • OOTB Rules
      • Triage and Prioritize
        • Runtime Prioritization Engine
        • Severity Scoring
      • Review and Remediate
        • Mute Issues
        • Automate Security Workflows
        • Remediate with AI
        • Ownership Agent
        • Set Up Ownership Preferences
      • Code Locations
      • Guides
      • Troubleshooting
        • Vulnerabilities
        • Agentless Scanning
    • App and API Protection
      • Terms and Concepts
      • How It Works
        • Threat Intelligence
        • Trace Qualification
        • User Monitoring and Protection
      • Setup
      • API Posture
        • Overview
        • API Findings
        • Compliance
        • API Inventory
        • Endpoint Scanning
        • Sensitive Data
      • Threat Protection
        • Overview
        • Security Signals
        • Policies
        • Exploit Prevention
        • WAF Integrations
        • Account Takeover Protection
      • Attack Summary
      • Guides
      • Troubleshooting
    • AI Guard
      • Set Up AI Guard
        • Automatic Integrations
        • Manual Integrations
        • SDK
        • HTTP API
      • Manage Policies
      • Redact Sensitive Data
      • Control Evaluations in Code
      • Triage and Investigate Signals
    • Workload Protection
      • Setup
        • Docker
        • Kubernetes
        • ECS (EC2 compute)
        • Linux
        • Fargate
        • Windows
        • Advanced Configuration
      • Detect and Monitor
        • Agent Rules
        • Detection and Finding Rules
        • Threat Intelligence
        • Content Packs
      • Investigate and Triage
        • Agent Events
        • Signals
        • Findings
      • Respond to Threats
      • Coverage
        • Review and Improve Coverage
      • Guides
      • Troubleshooting
    • Sensitive Data Scanner
      • Setup
        • Telemetry Data
        • Cloud Storage
      • Scanning Rules
        • Library Rules
        • Custom Rules
      • Guides
      • Troubleshooting
    • Data Security
      • Setup
        • Snowflake
        • PostgreSQL
        • Amazon S3
      • Findings
  • AI Observability
    • Agent Observability
      • Quickstart
        • Terms and Concepts
      • Build with AI
      • Instrument
        • Automatic
        • SDK Reference
        • HTTP API
        • OpenTelemetry
        • Correlate with APM
        • Prompt Tracking
        • Agent Tracking
        • Multimodal
      • Investigate
        • Querying spans and traces
        • Insights
        • Cost
        • Metrics
        • Patterns
        • Evaluations
        • Annotation Queues
        • Export API
      • Improve
        • Playground
        • Datasets
        • Offline Experiments
        • Online Experiments
        • Prompt Experimentation
      • Configure
        • Prompt Management
        • Automation Rules
      • Data Governance
        • Data Access Control
      • Lapdog
      • Guides
    • GPU Monitoring
      • Setup
        • Dynamic Resource Allocation
      • Summary
      • Explorer
      • Capacity Planning
      • Training
      • Inference
      • Continuous Tracing
      • MCP Tools
    • Agent Console
      • Setup
    • AI Gateway
      • Get Started
      • Connect Providers
      • Send Requests
      • Connect Applications
      • Route Requests
      • Control Model Access
      • Control Spend and Usage
      • Security and Data Capture
      • Observe AI Gateway Activity
      • Best practices
      • Troubleshooting
  • Log Management
    • Observability Pipelines
      • Configuration
        • Explore Templates
        • Set Up Pipelines
        • Pipeline Simulation
        • Install the Worker
        • Secrets Management
        • Live Capture
        • Update Existing Pipelines
        • Export Pipeline
        • Network Traffic
        • Version History
        • Access Control
        • Manage Pipelines with AI Agents
      • Sources
        • Akamai DataStream
        • Amazon Data Firehose
        • Amazon S3
        • Azure Event Hubs
        • Cloudflare Logpush
        • Datadog Agent
        • Datadog Lambda Extension
        • Datadog Lambda Forwarder
        • Filebeat
        • Fluent
        • Google Pub/Sub
        • HTTP Client
        • HTTP Server
        • OpenTelemetry
        • Prometheus
        • Kafka
        • Logstash
        • MySQL
        • Okta
        • Socket
        • Splunk HEC
        • Splunk TCP
        • Sumo Logic Hosted Collector
        • Syslog
        • WebSocket
      • Processors
        • Add Environment Variables
        • Add hostname
        • Aggregate
        • Custom Processor
        • Deduplicate
        • Edit fields
        • Edit tags
        • Enrichment Table
        • Filter
        • Generate Metrics
        • Grok Parser
        • Parse JSON
        • Parse XML
        • Quota
        • Reduce
        • Remap to OCSF
        • Sample
        • Sawmill
        • Sensitive Data Scanner
        • Spike Protection
        • Split Array
        • Tag Allow/Block List
        • Tags
        • Tag Cardinality Control
        • Throttle
      • Destinations
        • Amazon OpenSearch
        • Amazon S3
        • Amazon Security Lake
        • Azure Data Explorer
        • Azure Storage
        • ClickHouse
        • CrowdStrike NG-SIEM
        • Databricks (Zerobus)
        • Datadog Archives
        • Datadog BYOC Logs
        • Datadog Logs
        • Datadog Metrics
        • Elasticsearch
        • Google Cloud Storage
        • Google Pub/Sub
        • Google SecOps
        • HTTP Client
        • Kafka
        • Microsoft Sentinel
        • New Relic
        • OpenSearch
        • OpenTelemetry
        • Prometheus
        • SentinelOne
        • Socket
        • Splunk HEC
        • Sumo Logic Hosted Collector
        • Syslog
      • Packs
      • Replay
      • Log Anomaly Detection
      • Search Syntax
      • Scaling and Performance
        • Buffering and Backpressure
        • Scaling Best Practices
      • Monitoring and Troubleshooting
        • Worker CLI Commands
        • Monitoring Pipelines
        • Pipeline Usage Metrics
        • Troubleshooting
      • Guides and Resources
        • Upgrade Worker Guide
    • Log Management
      • Log Collection & Integrations
        • Browser
        • Android
        • iOS
        • Flutter
        • React Native
        • Roku
        • Kotlin Multiplatform
        • C / C++
        • .NET MAUI
        • Electron
        • C#
        • Go
        • Java
        • Node.js
        • PHP
        • OpenTelemetry
        • Python
        • Agent Integrations
        • Ruby
        • Other Integrations
      • Log Configuration
        • Pipelines
        • Processors
        • Parsing
        • Pipeline Scanner
        • Attributes and Aliasing
        • Generate Metrics
        • Indexes
        • Flex Logs
        • Archives
        • Rehydrate from Archives
        • Forwarding
        • Log Optimizer
        • External Sources
      • Log Explorer
        • Live Tail
        • Search Logs
        • Search Syntax
        • Advanced Search
        • Facets
        • Calculated Fields
        • Analytics
        • Patterns
        • Transactions
        • Visualize
        • Log Side Panel
        • Export
        • Watchdog Insights for Logs
        • Saved Views
        • Archive Search
        • Findings
        • Federated Logs
      • Error Tracking
        • Error Tracking Explorer
        • Issue States
        • Track Browser and Mobile Errors
        • Track Backend Errors
        • Error Grouping
        • Manage Data Collection
        • Dynamic Sampling
        • Monitors
        • Identify Suspect Commits
        • Troubleshooting
      • Reports
      • Migration
        • Migration Tools
      • Guides
      • Data Security
      • Troubleshooting
        • Live Tail
    • BYOC Logs
      • Introduction
        • Architecture
        • Network
        • Supported Features
      • Quickstart
      • Install
        • AWS EKS
        • Azure AKS
        • GCP GKE
        • Docker (Local)
        • Datadog Operator
      • Ingest
        • Datadog Agent
        • Observability Pipelines
        • REST API
      • Configure
        • Indexes
        • Ingress
        • Lambda Search Offloading
      • Operate
        • Sizing
        • Object Storage Request Estimation
        • Autoscaling
        • Monitoring
        • Search Logs
        • Production Best Practices
        • Disk Buffer Durability
        • Releases and Updates
        • Troubleshooting
        • Rename a Cluster
      • Guides
      • Release Notes
  • Administration
    • Account Management
      • Organization Topology
      • Switching Between Orgs
      • Organization Settings
        • User Management
        • Login Methods
        • Mobile and Third-Party Access
        • Custom Organization Landing Page
        • Service Accounts
        • IP Allowlist
        • Domain Allowlist
        • Cross-Organization Visibility
        • SMTP Configuration
        • Cross-App Access
      • Access Control
        • Granular Access
        • Permissions
        • Data Access
        • Request Access
        • MCP Access
      • SSO with SAML
        • Configuring SAML
        • Renewing SAML Certificates
        • User Group Mapping
        • Active Directory
        • Auth0
        • Entra ID
        • Google
        • LastPass
        • Okta
        • SafeNet
        • Troubleshooting
      • Delete Data
      • SCIM
        • Okta
        • Microsoft Entra ID
      • API and Application Keys
      • Personal Access Tokens
      • Service Access Tokens
      • Teams
        • Team Management
        • Provision with GitHub
        • Provision with ServiceNow
      • Governance Console
        • Controls
      • Multi-Factor Authentication
      • Audit Trail
        • Events
        • Forwarding
        • Guides
      • Safety Center
      • Plan & Usage
        • Bill Overview
        • Cost Details
        • Usage Details
        • Partner Experience
      • Billing
        • Pricing
        • Credit Card
        • Product Allotments
        • Usage Metrics
        • Usage Attribution
        • Custom Metrics
        • Containers
        • Log Management
        • APM
        • Serverless
        • Real User Monitoring
        • CI/CD Optimization
        • Incident Response
        • AWS Integration
        • Azure Integration
        • Google Cloud Integration
        • OCI Integration
        • Alibaba Integration
        • vSphere Integration
        • Workflow Automation
        • AI Credits
        • AI Credit Limits
      • Multi-org Accounts
        • Organization Groups
      • Guides
      • Workload Identity Federation
    • Disaster Recovery
      • Recommended Settings for DNS Failover
    • Data Security
      • Agent
      • Cloud SIEM
      • Kubernetes
      • Log Management
      • Real User Monitoring
      • Synthetic Monitoring
      • Tracing
      • PCI Compliance
      • HIPAA Compliance
      • Data Retention Periods
      • Guides
    • Help

Datadog Docs

Essentials

  • Getting Started
    • Agent
    • API
    • APM Tracing
    • Containers
    • Dashboards
    • Database Monitoring
    • Datadog
    • Datadog Site
    • DevSecOps
    • Incident Management
    • Integrations
    • Internal Developer Portal
    • Logs
    • Monitors
    • Notebooks
    • OpenTelemetry
    • Profiler
    • Search
    • Session Replay
    • Security
    • Serverless for AWS Lambda
    • Software Delivery
    • Synthetic Monitoring and Testing
    • Tags
    • Teams
    • Workflow Automation
    • Access for Enterprises
    • Learning Center
    • Support
  • Glossary
    • Standard Attributes
      • Guides
        • Agent
          • Architecture
          • IoT
          • Supported Platforms
          • Log Collection
          • Configuration
          • Fleet Automation
          • Troubleshooting
          • Guides
          • Data Security
        • Integrations
          • Guides
        • Client SDKs
          • Setup
          • Advanced Configuration
          • Data Collected
          • Integrated Libraries
          • Troubleshooting
        • Extend Datadog
          • Authorization
          • DogStatsD
          • Custom Checks
          • Integrations
          • Service Checks
          • Community
          • Guides
        • OpenTelemetry
          • Getting Started
          • Feature Compatibility
          • Instrument Your Applications
          • Send Data to Datadog
          • Semantic Mapping
          • Ingestion Sampling
          • Correlate Data
          • Integrations
          • Fleet Automation
          • Troubleshooting
          • Guides and Resources
          • Reference
        • Administrator's Guide
          • Getting Started
          • Plan
          • Build
          • Run
        • API
          • Command Line
            • MCP Server
              • Setup
              • MCP Tools
              • Code Execution
            • Partners
              • Datadog Mobile App
                • Enterprise Configuration
                • Datadog for Intune
                • Shortcut Configurations
                • Push Notifications
                • Widgets
                • Guides
              • DDSQL Reference
                • Data Directory
              • Remote Configuration
                • Cloudcraft (Standalone)
                  • Getting Started
                  • Account Management
                  • Components: Common
                  • Components: Azure
                  • Components: AWS
                  • Advanced
                  • FAQ
                  • API

                In The App

                • Dashboards
                  • Configure
                  • Dashboard List
                  • Widgets
                  • Querying
                  • Functions
                  • Graph Insights
                  • Template Variables
                  • Overlays
                  • Annotations
                  • Guides
                  • Sharing
                • Notebooks
                  • Analysis Features
                  • Markdown Format
                  • API Guide
                  • Guides
                • DDSQL Editor
                  • Reference Tables
                    • Sheets
                      • Functions and Operators
                      • Guides
                    • Monitors and Alerting
                      • Draft Monitors
                      • Configure Monitors
                      • Monitor Templates
                      • Monitor Types
                      • Notifications
                      • Downtimes
                      • Manage Monitors
                      • Monitor Status
                      • Monitor Settings
                      • Monitor Quality
                      • Guides
                    • Service Level Objectives
                      • Monitor-based SLOs
                      • Metric-based SLOs
                      • Time Slice SLOs
                      • Error Budget Alerts
                      • Burn Rate Alerts
                      • Guides
                    • Metrics
                      • Custom Metrics
                      • OpenTelemetry Metrics
                      • Metrics Types
                      • Distributions
                      • Overview
                      • Explorer
                      • Catalog
                      • Advanced Filtering
                      • Nested Queries
                      • Reference Table Joins with Metrics
                      • Derived Metrics
                      • Metrics Without Limits™
                      • Guides
                    • Watchdog
                      • Alerts
                      • Impact Analysis
                      • RCA
                      • Insights
                      • Faulty Deployment Detection
                      • Faulty Cloud & SaaS API Detection
                    • Bits AI
                      • Bits Agent Builder
                      • Bits Autonomous Operations
                      • Bits Chat
                      • Bits Code
                      • Bits Data Analysis
                      • Bits Database Optimization
                      • Bits Live Debugger
                      • Bits Maintenance
                      • Bits Release
                      • Bits Security Analyst
                      • Bits AI Settings
                    • Internal Developer Portal
                      • Catalog
                      • Scorecards
                      • Self-Service Actions
                      • Engineering Reports
                      • Homepage
                      • Campaigns
                      • External Provider Status
                      • Integrations
                      • Use Cases
                      • Onboarding Guide
                    • Error Tracking
                      • Explorer
                      • Issue States
                      • Regression Detection
                      • Suspected Causes
                      • Error Grouping
                      • Bits Investigation
                      • Monitors
                      • Identify Suspect Commits
                      • Auto Assign
                      • Issue Team Ownership
                      • Track Browser and Mobile Errors
                      • Track Backend Errors
                      • Manage Data Collection
                      • Ticketing Systems
                      • Link Pull Requests
                      • Troubleshooting
                      • Guides
                    • Change Tracking
                      • Change Types
                    • Event Management
                      • Ingest Events
                      • Pipelines and Processors
                      • Explorer
                      • Triage Inbox
                      • Correlation
                      • Guides

                    Incident Response

                    • Incident Management
                      • Incident Investigation
                      • Setup and Configuration
                      • Post Incident
                      • Analytics and Reporting
                      • Integrations
                      • Guides
                    • On-Call
                      • Onboard a Team
                      • Pages
                      • Routing Rules
                      • Escalation Policies
                      • Schedules
                      • Handover automation
                      • Notification Preferences
                      • Analytics
                      • Integrations
                      • Guides
                    • Status Pages
                      • Components
                      • Notices
                      • Notice Templates
                      • Subscriptions
                    • Work Management
                      • Projects
                      • Create a Work Item
                      • Customization
                      • View and Manage Work Items
                      • Notifications and Integrations
                      • Work Item Automation Rules
                      • Work Item Approvals
                      • AI Tools
                      • Troubleshooting

                    Actions & Remediations

                    • Bits Agent Builder
                      • Improve agents using traces
                    • Workflow Automation
                      • Build Workflows
                      • Access and Authentication
                      • Trigger Workflows
                      • Variables and parameters
                      • Actions
                      • Save and Reuse Actions
                      • Test and Debug
                      • Expressions
                      • Track Workflows
                      • Limits
                      • MCP Tools
                    • Apps
                      • Embed Apps
                    • App Builder
                      • Build Apps
                      • Access and Authentication
                      • Queries
                      • Variables
                      • Events
                      • Components
                      • JavaScript Expressions
                      • Embed App Builder Apps
                      • Save and Reuse Actions
                    • Datastores
                      • Create and Manage Datastores
                      • Use Datastores with Apps and Workflows
                      • Automation Rules
                      • Access and Authentication
                    • Forms
                      • Components
                      • Responses
                      • Guides
                    • Action Catalog
                      • Connections
                      • Execution Policies
                      • Private Actions

                    Infrastructure

                    • Cloudcraft
                      • Overlays
                    • Resource Catalog
                      • Cloud Resources Schema
                      • Policies
                      • Resource Changes
                    • Universal Service Monitoring
                      • Setup
                      • Guides
                    • End User Device Monitoring
                      • Setup
                    • Hosts
                      • Host List
                    • Containers
                      • Container Monitoring
                      • Autoscaling
                      • Docker-based
                      • Kubernetes
                      • Cluster Agent
                      • Amazon ECS
                      • Datadog Operator
                      • Troubleshooting
                      • Guides
                    • Processes
                      • Increase Process Retention
                    • Serverless
                      • AWS
                      • Azure
                      • Google
                      • Libraries & Integrations
                      • Glossary
                      • Guides
                    • Network Monitoring
                      • Cloud Network Monitoring
                      • DNS Monitoring
                      • Network Device Monitoring
                      • NetFlow Monitoring
                      • Network Path
                      • L1 to L7 Map
                    • Storage Management
                      • Amazon S3
                      • Google Cloud Storage
                      • Azure Blob Storage

                    Cloud Cost

                    • Cloud Cost
                      • Datadog Costs
                      • Setup
                      • Tags
                      • Allocation
                      • AI Costs
                      • Reporting
                      • Recommendations
                      • Planning
                      • Cost Changes
                      • Cloud Cost Skill

                    Application Performance

                    • APM
                      • APM Terms and Concepts
                      • Application Instrumentation
                      • APM Metrics Collection
                      • Trace Pipeline Configuration
                      • Correlate Traces with Other Telemetry
                      • Trace Explorer
                      • Recommendations
                      • Code Origin for Spans
                      • Service Observability
                      • Endpoint Observability
                      • Live Debugger
                      • Error Tracking
                      • Data Security
                      • Guides
                      • Troubleshooting
                    • Continuous Profiler
                      • Enabling the Profiler
                      • Profile Types
                      • Profile Visualizations
                      • Investigate Slow Traces or Endpoints
                      • Compare Profiles
                      • Automated Analysis
                      • Profiler Troubleshooting
                      • Guides
                    • Database Monitoring
                      • Set Up DBM
                      • Data Collected
                      • Explore DBM
                      • Connecting DBM and Traces
                      • Database Investigations in Bits Chat
                      • Bits Database Optimization
                      • Database Monitoring Workbench
                      • Database Monitoring PR Reviews
                      • Role Observability
                      • Troubleshooting
                      • Guides
                    • Data Streams Monitoring
                      • Setup
                      • Kafka Console
                      • Schema Tracking
                      • Dead Letter Queues
                      • Metrics and Tags

                    Data Observability

                    • Data Observability Overview
                      • Data Catalog
                        • Lineage
                          • Quality Monitoring
                            • Data Warehouses
                            • Data Lakes
                            • Transactional Databases
                            • ELT Integrations
                            • Business Intelligence Integrations
                            • Monitors
                            • Guides
                          • Jobs Monitoring
                            • Databricks
                            • Airflow
                            • dbt
                            • Spark on Kubernetes
                            • Spark on Amazon EMR
                            • Spark on Google Dataproc
                            • AWS Glue
                            • Azure Data Factory
                            • Custom Jobs (OpenLineage)
                            • Monitors
                          • CI/CD
                            • Integration Overhead

                              Digital Experience

                              • Journey Monitoring
                                • Configure Journeys
                                • Suggested Journeys
                                • Variants
                                • Journey Overview Page
                                • Map
                                • Status
                                • Details Report
                                • Roles and Permissions
                              • Real User Monitoring
                                • Application Monitoring
                                • Platform
                                • Exploring RUM Data
                                • Correlate RUM with Other Telemetry
                                • Feature Flag Tracking
                                • Error Tracking
                                • Bits in RUM
                                • RUM Without Limits
                                • Operations Monitoring
                                • Managed Archive
                                • Export Pipelines
                                • Ownership of Views
                                • Remote Configuration
                                • Guides
                                • Data Security
                              • Synthetic Testing and Monitoring
                                • API Testing
                                • Multistep API Testing
                                • Browser Testing
                                • Network Path Testing
                                • Mobile Application Testing
                                • Test Suites
                                • Bits Testing
                                • Goal-Based Testing
                                • Platform
                                • Exploring Synthetics Data
                                • Guides
                                • Notifications
                                • Troubleshooting
                                • Data Security
                              • Continuous Testing
                                • Local and Staging Environments
                                • CI/CD Integrations
                                • Settings
                                • Results Explorer
                                • Metrics
                                • Guides
                                • Troubleshooting
                              • Experiments
                                • Create Experiment Metrics
                                • Standardize Experiments with Protocols
                                • Plan and Launch Experiments
                                • Experiment Approvals
                                • Read Experiment Results
                                • Experiment Diagnostics
                                • Concepts
                                • Statistics
                                • Break Out Metrics by Property
                                • Troubleshooting
                                • Experiments MCP Tools
                                • Guides
                              • Product Analytics
                                • Charts
                                • Dashboards
                                • Segments
                                • Action Management
                                • Managing Profiles
                                • Tracking Plans
                                • Data Collected
                                • Export Pipelines
                                • Usability
                                • Guides
                                • Troubleshooting
                              • Session Replay
                                • Setup
                                • Privacy Options
                                • Developer Tools
                                • Playlists
                                • Heatmaps
                                • Impact on App Performance
                                • Troubleshooting
                                • Guides

                              Software Delivery

                              • CI/CD Optimization
                                • CI Visibility
                                • Test Optimization
                                • Explorer
                                • Features
                                • Monitors
                                • Guides
                                • Troubleshooting
                              • CD Visibility
                                • Deployment Visibility
                                • Explore Deployments
                                • Features
                                • Monitors
                              • Deployment Gates
                                • Setup
                              • Code Coverage
                                • Setup
                                • Configuration
                                • Coverage Calculation
                                • Monorepo Support
                                • Flags
                                • Carryforward
                                • Data Collected
                                • Dashboards
                              • PR Gates
                                • Setup
                              • Delivery Performance
                                • DORA Metrics
                                • AI Impact
                              • Feature Flags
                                • Client SDKs
                                  • Android and Android TV
                                  • Angular
                                  • Dart and Flutter
                                  • iOS and tvOS
                                  • JavaScript
                                  • React
                                  • React Native
                                  • Unity
                                • Server SDKs
                                  • .NET
                                  • Go
                                  • Java
                                  • Node.js
                                  • PHP
                                  • Python
                                  • Ruby
                                • Concepts
                                  • Approvals
                                  • Cloning Feature Flags
                                  • Configuration Sources
                                  • Distribution Channels
                                  • Environments
                                  • Evaluation Context
                                  • Evaluation Results
                                  • Evaluation Tester
                                  • Experiments
                                  • Feature Flag Graphs
                                  • Flag Evaluation and Experimentation Opt-Out
                                  • Flag History
                                  • Flag Key Obfuscation
                                  • Monthly Flag Configuration Requests
                                  • Permissions and Access Control
                                  • Saved Filters
                                  • Scheduled Rollouts
                                  • Stale Flags
                                  • Targeting Attributes
                                  • Targeting Rules and Filters
                                  • Traffic Splitting and Randomization
                                  • Variants and Flag Types
                                  • Workflow Automation
                                • Use Cases
                                  • Progressive Rollouts and Canaries
                                  • Kill Switches
                                  • Dynamic Configuration
                                • Implementation Patterns
                                  • Local Flag Overrides
                                  • OpenTelemetry
                                  • Serverless
                                  • Browser Rules-Based Evaluation
                                • Browser Developer Extension
                                • MCP Server
                                • Guides

                              Developer Integrations

                              • Source Code Integration
                                • Source Code Management Providers
                                • Service Mapping
                                • Resource Mapping
                                • Code Snippets and Context Links
                                • PR Comments
                              • IDE Plugins
                                • JetBrains IDEs
                                • VS Code & Cursor

                              Security

                              • Security Overview
                                • Detection Rules
                                • Notifications
                                • Suppressions
                                • Automation Pipelines
                                • Security Inbox
                                • Remediation Inbox
                                • Threat Intelligence
                                • Events Forwarding
                                • Audit Trail
                                • Access Control
                                • Ticketing Integrations
                                • Assignee Management
                                • Research Feed
                                • Severity Adjustment
                                • Security MCP Tools
                                • Guides
                              • Cloud SIEM
                                • Ingest and Enrich
                                • Detect and Monitor
                                • Triage and Investigate
                                • Respond and Report
                                • Guides
                                • Data Security
                              • Code Security
                                • Static Code Analysis (SAST)
                                • Software Composition Analysis (SCA)
                                • Secret Scanning
                                • Runtime Code Analysis (IAST)
                                • Infrastructure as Code (IaC) Security
                                • Prioritize Findings with Runtime Context
                                • Developer Tool Integrations
                                • Troubleshooting
                                • Guides
                              • Cloud Security
                                • Setup
                                • Security Graph
                                • Misconfigurations
                                • Identity Risks
                                • Vulnerabilities
                                • Crown Jewels
                                • OOTB Rules
                                • Triage and Prioritize
                                • Review and Remediate
                                • Code Locations
                                • Guides
                                • Troubleshooting
                              • App and API Protection
                                • Terms and Concepts
                                • How It Works
                                • Setup
                                • API Posture
                                • Threat Protection
                                • Attack Summary
                                • Guides
                                • Troubleshooting
                              • AI Guard
                                • Set Up AI Guard
                                • Manage Policies
                                • Redact Sensitive Data
                                • Control Evaluations in Code
                                • Triage and Investigate Signals
                              • Workload Protection
                                • Setup
                                • Detect and Monitor
                                • Investigate and Triage
                                • Respond to Threats
                                • Coverage
                                • Guides
                                • Troubleshooting
                              • Sensitive Data Scanner
                                • Setup
                                • Scanning Rules
                                • Guides
                                • Troubleshooting
                              • Data Security
                                • Setup
                                • Findings

                              AI Observability

                              • Agent Observability
                                • Quickstart
                                • Build with AI
                                • Instrument
                                • Investigate
                                • Improve
                                • Configure
                                • Data Governance
                                • Lapdog
                                • Guides
                              • GPU Monitoring
                                • Setup
                                • Summary
                                • Explorer
                                • Capacity Planning
                                • Training
                                • Inference
                                • Continuous Tracing
                                • MCP Tools
                              • Agent Console
                                • Setup
                              • AI Gateway
                                • Get Started
                                • Connect Providers
                                • Send Requests
                                • Connect Applications
                                • Route Requests
                                • Control Model Access
                                • Control Spend and Usage
                                • Security and Data Capture
                                • Observe AI Gateway Activity
                                • Best practices
                                • Troubleshooting

                              Log Management

                              • Observability Pipelines
                                • Configuration
                                • Sources
                                • Processors
                                • Destinations
                                • Packs
                                • Replay
                                • Log Anomaly Detection
                                • Search Syntax
                                • Scaling and Performance
                                • Monitoring and Troubleshooting
                                • Guides and Resources
                              • Log Management
                                • Log Collection & Integrations
                                • Log Configuration
                                • Log Explorer
                                • Error Tracking
                                • Reports
                                • Migration
                                • Guides
                                • Data Security
                                • Troubleshooting
                              • BYOC Logs
                                • Introduction
                                • Quickstart
                                • Install
                                • Ingest
                                • Configure
                                • Operate
                                • Guides
                                • Release Notes

                              Administration

                              • Account Management
                                • Organization Topology
                                • Switching Between Orgs
                                • Organization Settings
                                • Access Control
                                • SSO with SAML
                                • Delete Data
                                • SCIM
                                • API and Application Keys
                                • Personal Access Tokens
                                • Service Access Tokens
                                • Teams
                                • Governance Console
                                • Multi-Factor Authentication
                                • Audit Trail
                                • Safety Center
                                • Plan & Usage
                                • Billing
                                • Multi-org Accounts
                                • Guides
                                • Workload Identity Federation
                              • Disaster Recovery
                                • Recommended Settings for DNS Failover
                              • Data Security
                                • Agent
                                • Cloud SIEM
                                • Kubernetes
                                • Log Management
                                • Real User Monitoring
                                • Synthetic Monitoring
                                • Tracing
                                • PCI Compliance
                                • HIPAA Compliance
                                • Data Retention Periods
                                • Guides
                              • Help

                                JavaScript Feature Flags

                                Docs  >  Feature Flags  >  Client-Side Feature Flags  >  JavaScript Feature Flags
                                This product is not supported for your selected Datadog site. ().

                                Overview

                                This page describes how to instrument your browser JavaScript application with the Datadog Feature Flags SDK. Datadog feature flags provide a unified way to remotely control feature availability in your app, experiment safely, and deliver new experiences with confidence.

                                The Datadog Feature Flags SDK for JavaScript is built on OpenFeature, an open standard for feature flag management. This guide explains how to install the SDK, configure the Datadog provider, and evaluate flags in your application.

                                Installation

                                Install the Datadog OpenFeature provider and the OpenFeature Web SDK using your preferred package manager:

                                  npm install @datadog/openfeature-browser @openfeature/web-sdk @openfeature/core
                                  yarn add @datadog/openfeature-browser @openfeature/web-sdk @openfeature/core
                                  pnpm add @datadog/openfeature-browser @openfeature/web-sdk @openfeature/core

                                  Choose a provider

                                  Use DatadogProvider for most applications. It fetches precomputed assignments, retrieves updated assignments when the evaluation context changes, and manages built-in telemetry. The setup and examples on this page use this provider.

                                  DatadogCoreProvider is an advanced, OpenFeature-compatible alternative for application-controlled configuration delivery and refreshes. It also supports local rules evaluation across context changes without fetching new assignments. It does not fetch configuration or install tracking hooks. See Advanced: application-managed configuration.

                                  For repeated context changes during a session, follow Load rules once, evaluate across changing contexts with DatadogCoreProvider. The initial rules fetch and later refreshes count toward Monthly Flag Configuration Requests (MFCR); local context changes do not.

                                  DatadogProvider supports custom Fetch behavior and initial precomputed fallback data; these use cases alone do not require the advanced provider.

                                  Initialize the provider

                                  Create a DatadogProvider instance with your Datadog credentials. For live Browser Feature Flags configuration, applicationId, clientToken, site, and env are required. To create a client token, see Client tokens.

                                  Browser Feature Flags are not supported for the selected Datadog site ().

                                  import { DatadogProvider, withTimeout } from '@datadog/openfeature-browser';
                                  import { OpenFeature } from '@openfeature/web-sdk';
                                  
                                  const provider = new DatadogProvider({
                                    // Required
                                    // applicationId is a unique identifier to distinguish multiple frontend applications.
                                    // This should match the app ID you provide to your RUM SDK.
                                    applicationId: '<APPLICATION_ID>',
                                    // Required
                                    clientToken: '<CLIENT_TOKEN>',
                                    site: '',
                                    env: '<ENV_NAME>',
                                    flagConfigurationFetch: withTimeout(globalThis.fetch, 5_000),
                                  });
                                  

                                  Set the evaluation context

                                  Define who or what the flag evaluation applies to using an evaluation context. The evaluation context includes user or session information used to determine which flag variations should be returned. Reference these attributes in your targeting rules to control who sees each variant.

                                  Datadog Feature Flags requires evaluation context attributes to be flat primitive values: strings, numbers, and Booleans. Do not pass nested objects or arrays; they are not supported and can cause exposure data to be dropped.
                                  const evaluationContext = {
                                    targetingKey: 'user-123',
                                    user_id: '123',
                                    user_role: 'admin',
                                    email: '[email protected]',
                                  };
                                  
                                  await OpenFeature.setProviderAndWait(provider, evaluationContext);
                                  The targetingKey is used as the randomization subject for percentage-based targeting. When a flag targets a percentage of subjects (for example, 50%), the targetingKey determines which "bucket" a user falls into. Users with the same targetingKey always receive the same variant for a given flag.

                                  Most applications run several asynchronous tasks at startup, such as fetching data from another service or loading configuration. This example shows only feature flag initialization. As a best practice, start all of your startup promises together and await them as a group (for example, with Promise.all) right before the results are needed, rather than awaiting each one sequentially. This keeps total startup time close to the slowest task instead of the sum of all of them.

                                  Evaluate flags

                                  After the provider is initialized, you can evaluate flags anywhere in your application. Flag evaluation is local and instantaneous—the SDK uses locally cached data, so no network requests occur when evaluating flags.

                                  Get a client

                                  Retrieve the OpenFeature client to evaluate flags:

                                  const client = OpenFeature.getClient();

                                  Boolean flags

                                  Use getBooleanValue(key, defaultValue) for flags that represent on/off or true/false conditions:

                                  const isNewCheckoutEnabled = client.getBooleanValue('checkout_new', false);
                                  
                                  if (isNewCheckoutEnabled) {
                                    showNewCheckoutFlow();
                                  } else {
                                    showLegacyCheckout();
                                  }

                                  String flags

                                  Use getStringValue(key, defaultValue) for flags that select between multiple variants or configuration strings:

                                  const theme = client.getStringValue('ui_theme', 'light');
                                  
                                  switch (theme) {
                                    case 'dark':
                                      setDarkTheme();
                                      break;
                                    case 'light':
                                    default:
                                      setLightTheme();
                                  }

                                  Number flags

                                  Use getNumberValue(key, defaultValue) for numeric flags such as limits, percentages, or multipliers:

                                  const maxItems = client.getNumberValue('cart_items_max', 20);
                                  const priceMultiplier = client.getNumberValue('pricing_multiplier', 1.0);

                                  Object flags

                                  Use getObjectValue(key, defaultValue) for structured configuration data:

                                  const config = client.getObjectValue('promo_banner_config', {
                                    color: '#00A3FF',
                                    message: 'Welcome!',
                                  });

                                  Flag evaluation details

                                  When you need more than just the flag value, use the detail methods. These return both the evaluated value and metadata explaining the evaluation:

                                  const details = client.getBooleanDetails('checkout_new', false);
                                  
                                  console.log(details.value);       // Evaluated value (true or false)
                                  console.log(details.variant);     // Variant name, if applicable
                                  console.log(details.reason);      // Why this value was chosen
                                  console.log(details.errorCode);   // Error code, if evaluation failed
                                  

                                  Complete example

                                  Here’s a complete example showing how to set up and use Datadog Feature Flags in a JavaScript application:

                                  import { DatadogProvider, withTimeout } from '@datadog/openfeature-browser';
                                  import { OpenFeature } from '@openfeature/web-sdk';
                                  
                                  // Initialize the Datadog provider
                                  const provider = new DatadogProvider({
                                    applicationId: '<APPLICATION_ID>',
                                    clientToken: '<CLIENT_TOKEN>',
                                    site: '',
                                    env: '<ENV_NAME>',
                                    flagConfigurationFetch: withTimeout(globalThis.fetch, 5_000),
                                  });
                                  
                                  // Set the evaluation context
                                  const evaluationContext = {
                                    targetingKey: 'user-123',
                                    user_id: '123',
                                    user_role: 'admin',
                                  };
                                  
                                  await OpenFeature.setProviderAndWait(provider, evaluationContext);
                                  
                                  // Get the client and evaluate flags
                                  const client = OpenFeature.getClient();
                                  const showNewFeature = client.getBooleanValue('new_feature', false);
                                  
                                  if (showNewFeature) {
                                    console.log('New feature is enabled!');
                                  }
                                  

                                  Update the evaluation context

                                  To update the evaluation context after initialization (for example, when a user logs in), use OpenFeature.setContext():

                                  await OpenFeature.setContext({
                                    targetingKey: user.id,
                                    user_id: user.id,
                                    email: user.email,
                                    plan: user.plan,
                                  });

                                  Configure browser provider options

                                  The web provider also supports these optional settings:

                                  OptionDefaultUse
                                  trackExposurestrueSend exposure events to the exposures intake. Available in version 2.3.0 and later. Replaces the deprecated enableExposureLogging option. To record exposures in your own data store, see Record Feature Flag Exposures in Your Own Data Store.
                                  enableFlagEvaluationTrackingtrueSend aggregated flag evaluation telemetry.
                                  enableRumFeatureFlagTrackingtrueAdd flag evaluations to RUM events when Browser RUM is available. Enabling this option can increase RUM-billed event counts.
                                  enableEvaluationTelemetryOptOutParameterfalseIn version 2.2.0 or later, honor the Boolean dd_evaluation_telemetry_opt_out context attribute. See Flag evaluation opt-out.
                                  experimentationOptOutModeExperimentationOptOutMode.DisabledIn version 2.2.0 or later, select how to honor the dd_experimentation_opt_out_at context timestamp. See Experimentation opt-out.
                                  flagEvaluationTrackingInterval10000 msFlush interval for flag evaluation telemetry.
                                  initialFlagsConfigurationunsetSupply context-matching precomputed data as a fallback if fetching fails. See Supply initial precomputed fallback data.
                                  flaggingProxyunsetFetch flags through a proxy instead of site.
                                  customHeadersunsetAdd headers to flag-fetch requests.
                                  overwriteRequestHeadersfalseReplace default request headers with customHeaders.
                                  flagConfigurationFetchglobalThis.fetchProvide a Fetch-compatible implementation for flag configuration requests.
                                  flagSelectionunsetLoad only the flags that match a set of tags or key patterns. See Load a subset of flags.

                                  Supply initial precomputed fallback data

                                  Use initialFlagsConfiguration to supply precomputed assignments, such as configuration delivered by your application at startup. In browser SDK 2.0.0, DatadogProvider still attempts a configuration fetch during initialization. If fetching fails and the supplied configuration matches the effective evaluation context, the provider uses it and reports STALE status. If the context does not match, the provider checks its persistent cache instead; without a matching fallback, initialization fails.

                                  For a portable precomputed configuration string, parse it and restore its associated context:

                                  import {
                                    configurationFromString,
                                    DatadogProvider,
                                    getPrecomputedContext,
                                  } from '@datadog/openfeature-browser';
                                  import { OpenFeature } from '@openfeature/web-sdk';
                                  
                                  const configuration = configurationFromString('<PRECOMPUTED_CONFIGURATION_WIRE>');
                                  const context = getPrecomputedContext(configuration);
                                  if (context === undefined) {
                                    throw new Error('Expected a precomputed configuration with an evaluation context');
                                  }
                                  
                                  const provider = new DatadogProvider({
                                    applicationId: '<APPLICATION_ID>',
                                    clientToken: '<CLIENT_TOKEN>',
                                    site: '',
                                    env: '<ENV_NAME>',
                                    initialFlagsConfiguration: configuration,
                                  });
                                  
                                  await OpenFeature.setProviderAndWait(provider, context);
                                  

                                  Supply precomputed assignments generated for the same evaluation context that the provider uses. Include any RUM user attributes that the provider adds. Subsequent context changes still attempt to fetch assignments; initial data does not become a rules-based configuration.

                                  This option does not skip the initialization request. To initialize entirely from supplied configuration, use application-managed configuration.

                                  Set a timeout and retries for flag configuration requests

                                  The browser provider does not add a timeout or retries by default. In npm installations of @datadog/openfeature-browser 1.4.0 and later, use withTimeout and withRetry to limit each request attempt and retry transient failures. These helpers are not available in the CDN bundle.

                                  The flagConfigurationFetch option applies only to flag configuration requests. It does not affect exposure, aggregated flag evaluation, or RUM telemetry requests.
                                  import { DatadogProvider, withRetry, withTimeout } from '@datadog/openfeature-browser';
                                  
                                  const provider = new DatadogProvider({
                                    // Other provider options...
                                    flagConfigurationFetch: withRetry(withTimeout(globalThis.fetch, 5_000), 1),
                                  });
                                  withTimeout(fetch, timeoutMs)
                                  Sets the timeout in milliseconds for each request attempt, including the complete response-body download. Set the timeout to 0 to disable the timer. Accepted values are non-negative integers up to 2_147_483_647.
                                  withRetry(fetch, retryCount)
                                  Sets the number of retries after the initial request. Set the retry count to 0 to disable retries. Accepted values are integers from 0 to 10. Retries cover Fetch TypeError failures, timeout errors, HTTP 408, and HTTP 5xx responses. Caller cancellation and HTTP 429 responses are not retried. Retries use randomized exponential backoff capped at 30 seconds. For HTTP 503, a valid Retry-After value up to 30 seconds is a minimum delay before the backoff. A response that requests a longer delay is not retried. Browsers report network, CORS, and CSP failures as TypeError, so the wrapper cannot separate these causes.

                                  In the example, withTimeout is inside withRetry. Therefore, each attempt has its own five-second timeout, and 1 allows one retry after the initial request.

                                  Load a subset of flags

                                  In @datadog/openfeature-browser 2.2.0 and later, use flagSelection to load only the flags your application needs instead of every flag in the environment. Loading a subset reduces the size of the flag configuration that the SDK downloads and caches, which helps when an environment contains flags for many applications.

                                  Pass flagSelection to the provider when you create it. The selection is fixed for the provider’s lifetime. To load a different set of flags, create a new provider.

                                  flagSelection accepts two optional lists:

                                  tags
                                  Flag tags to match, such as app:checkout-web. A flag matches if it has any of the listed tags. Tags match exactly and are case-sensitive.
                                  keyPatterns
                                  Patterns to match against the whole flag key. * matches any sequence of characters, including none, anywhere in the pattern. Every other character, including ?, [, ], {, and }, matches only itself. For example, checkout-* matches checkout-banner but not new-checkout-banner, and *-checkout-* matches new-checkout-banner.

                                  A flag loads if it matches any listed tag or any key pattern. In the following example, the SDK loads every flag tagged app:checkout-web and every flag whose key starts with checkout-:

                                  import { DatadogProvider } from '@datadog/openfeature-browser';
                                  
                                  const provider = new DatadogProvider({
                                    applicationId: '<APPLICATION_ID>',
                                    clientToken: '<CLIENT_TOKEN>',
                                    site: '',
                                    env: '<ENV_NAME>',
                                    flagSelection: {
                                      tags: ['app:checkout-web'],
                                      keyPatterns: ['checkout-*'],
                                    },
                                  });
                                  
                                  Team tags can change when flag ownership changes, which changes the flags your application loads. Instead of selecting by team tags, add tags to your flags specifically for selection, such as app:checkout-web.

                                  Limits and validation

                                  Before sending the selection, the SDK trims leading and trailing whitespace from each value, removes empty values and duplicates, and sorts each list. After this processing, the selection must meet these limits:

                                  • tags contains at most 31 values.
                                  • keyPatterns contains at most 31 values.
                                  • Each tag is at most 200 bytes (UTF-8).
                                  • Each key pattern is at most 200 bytes (UTF-8).

                                  A selection cannot include a tag longer than 200 bytes, so keep the tags you add to flags for selection at 200 bytes or less.

                                  If both lists are empty after this processing, the SDK sends no selection and loads the full flag configuration without logging an error.

                                  If the flag selection is malformed or exceeds a limit, the SDK does not send it in the flag configuration request, logs an error to the browser console, and loads the full flag configuration.

                                  Because the SDK checks these limits first, selections that fail them never reach Datadog. Datadog can still ignore a selection that passes these checks, for example when the selection is too long to send in one request. In that case, Datadog returns the full flag configuration with a DD-Flag-Selection-Ignored header that gives one of the following reasons, and the SDK logs an error to the browser console:

                                  ReasonMeaning
                                  too_many_valuesA list contains more than 31 values, or the selection is too long to send in one request.
                                  invalid_tagA tag is longer than 200 bytes.
                                  invalid_key_patternA key pattern is longer than 200 bytes.
                                  malformed_selectionThe selection could not be parsed.
                                  tag_load_failedFlag tags could not be loaded for this request. The full configuration is returned so that evaluation can continue.

                                  The SDK logs these errors to the browser console:

                                  MessageCause
                                  Datadog Browser SDK: flagSelection was not sent (<REASON>: <DETAIL>). Loading the full flag configuration.The selection is malformed or exceeds a limit.
                                  Datadog Browser SDK: flagSelection was ignored by the server (<REASON>). Loaded the full flag configuration.Datadog ignored the selection. See the reasons in the previous table.

                                  If you route flag configuration requests through a proxy, see Proxy Feature Flag SDK Traffic for the header your proxy must pass through.

                                  Evaluate flags outside the selection

                                  Flags outside the selection are not loaded. Evaluating one of these flags returns the default value you supply, with the error code FLAG_NOT_FOUND:

                                  const client = OpenFeature.getClient();
                                  // 'search-ranking' has no app:checkout-web tag and does not match checkout-*
                                  const details = client.getBooleanDetails('search-ranking', false);
                                  
                                  console.log(details.value);     // false (the supplied default)
                                  console.log(details.errorCode); // 'FLAG_NOT_FOUND'
                                  

                                  Initial configuration is not filtered

                                  flagSelection does not filter configuration that you supply with initialFlagsConfiguration. The SDK uses that configuration as provided. For details, see the Supply initial precomputed fallback data section.

                                  Rules-based configuration

                                  fetchRulesConfiguration() from @datadog/openfeature-browser/rules-based accepts the same flagSelection option, with the same matching rules and limits. The request URL, including the encoded selection, must be at most 8,192 bytes. If it would be longer, the SDK does not send the selection, logs a too_many_values error to the browser console, and loads the full configuration. See Browser Rules-Based Evaluation.

                                  The SDK sends the selection as selected_flag_tags and selected_flag_key_patterns query parameters, with one parameter for each value. If you route this request through a proxy or a custom fetch implementation, forward all of these parameters unchanged. If you cache the response, include these parameters in the cache key so that requests with different selections do not share a cached response.

                                  Record exposures in your own data store

                                  Use ExposureHook to record exposures in your own logs, data warehouse, or analytics pipeline. It calls your code after each flag evaluation with the same exposure decision that the provider uses for Datadog. To stop sending exposures to Datadog, set trackExposures: false. This requires @datadog/openfeature-browser 2.3.0 or later. See Record Feature Flag Exposures in Your Own Data Store.

                                  Control flag evaluation telemetry and experiment participation

                                  In @datadog/openfeature-browser version 2.2.0 or later, use separate controls to manage flag evaluation telemetry and experiment participation for each subject. Both controls are disabled by default. For shared behavior and policy selection across client SDKs, see Flag Evaluation and Experimentation Opt-Out.

                                  Flag evaluation opt-out

                                  Set enableEvaluationTelemetryOptOutParameter to true when you create the provider. Then set dd_evaluation_telemetry_opt_out to Boolean true in the subject’s evaluation context:

                                  import { DatadogProvider } from '@datadog/openfeature-browser';
                                  import { OpenFeature } from '@openfeature/web-sdk';
                                  
                                  const provider = new DatadogProvider({
                                    applicationId: '<APPLICATION_ID>',
                                    clientToken: '<CLIENT_TOKEN>',
                                    site: '',
                                    env: '<ENV_NAME>',
                                    enableEvaluationTelemetryOptOutParameter: true,
                                  });
                                  
                                  await OpenFeature.setProviderAndWait(provider, {
                                    targetingKey: 'user-123',
                                    dd_evaluation_telemetry_opt_out: true,
                                  });
                                  

                                  Setting the attribute to true suppresses new flag evaluation events, aggregated evaluation counts, and automatic RUM flag annotations for the subject. Only Boolean true activates suppression. A missing attribute, false, or another type, such as the string 'true', does not activate suppression.

                                  The control does not change flag results or experiment participation. It does not suppress experiment exposures, customer hooks, or unrelated application telemetry. It does not remove queued events or existing RUM annotations.

                                  The attribute remains in assignment requests and exposure attributes. Targeting rules can use it, which can change assignments. Changing it follows the normal context refresh process and can produce another exposure under the existing deduplication rules.

                                  To resume flag evaluation telemetry, preserve the other context attributes and set the value to false:

                                  await OpenFeature.setContext({
                                    ...OpenFeature.getContext(),
                                    dd_evaluation_telemetry_opt_out: false,
                                  });
                                  

                                  Flag evaluation opt-out is not a general consent system. Assignment requests and exposures can still contain subject data.

                                  Experimentation opt-out

                                  Set experimentationOptOutMode when you create the provider. Your application records and stores the subject’s preference timestamp in dd_experimentation_opt_out_at.

                                  ModeBehavior when a valid timestamp is present
                                  ExperimentationOptOutMode.DisabledIgnore the attribute. This is the default.
                                  ExperimentationOptOutMode.ImmediateExclude the subject from all allocations that log experiment exposures, including holdouts.
                                  ExperimentationOptOutMode.FutureExperimentsOnlyAllow exposure-logging allocations activated strictly before the timestamp. Skip allocations activated at or after it, or without activation metadata. Holdouts use the same policy.

                                  An allocation defines how targeting rules assign flag variants. Exclusion applies to control variants and 100% experiment allocations as well as other experiment variants. Evaluation continues through ordinary feature allocations in their existing order. If none match, the SDK returns the application default. Skipped allocations do not log exposures.

                                  import { DatadogProvider, ExperimentationOptOutMode } from '@datadog/openfeature-browser';
                                  import { OpenFeature } from '@openfeature/web-sdk';
                                  
                                  const provider = new DatadogProvider({
                                    applicationId: '<APPLICATION_ID>',
                                    clientToken: '<CLIENT_TOKEN>',
                                    site: '',
                                    env: '<ENV_NAME>',
                                    experimentationOptOutMode: ExperimentationOptOutMode.Immediate,
                                  });
                                  
                                  await OpenFeature.setProviderAndWait(provider, {
                                    targetingKey: 'user-123',
                                    // Use the subject's stored preference timestamp.
                                    dd_experimentation_opt_out_at: '2026-10-19T12:00:00Z',
                                  });
                                  

                                  Use ExperimentationOptOutMode.FutureExperimentsOnly to exclude experiments based on their activation time. This mode checks allocation activation time, not the subject’s enrollment history. An older allocation can still assign the subject for the first time.

                                  Supply a valid timestamp in the format YYYY-MM-DDTHH:mm:ss[.fraction], followed by Z or a numeric offset such as -04:00. For example, 2026-10-19T12:00:00Z and 2026-10-19T08:00:00-04:00 represent the same instant. Comparisons retain nanosecond precision; fractional digits beyond nanoseconds are truncated. Empty strings, Boolean values, null, invalid dates, and timestamps without a timezone are invalid.

                                  With an enabled mode, an invalid timestamp prevents assignment requests. Flag evaluations return the application default with INVALID_CONTEXT.

                                  Both enabled modes apply immediately. A future timestamp does not schedule a preference change. In Immediate mode, any valid timestamp excludes the subject immediately. In FutureExperimentsOnly mode, a future cutoff still permits experiments activated before that cutoff.

                                  To update the preference, call OpenFeature.setContext() with the stored timestamp and the subject’s other attributes. Keep targetingKey unchanged. To permit experimentation again, remove the attribute:

                                  const context = { ...OpenFeature.getContext() };
                                  delete context.dd_experimentation_opt_out_at;
                                  await OpenFeature.setContext(context);
                                  

                                  With either enabled mode, context changes withhold previous assignments until matching assignments arrive. This also applies to subjects without an opt-out timestamp. Evaluations return the application default with PROVIDER_NOT_READY while waiting, including after a failed refresh. The provider rejects responses that do not confirm the requested opt-out policy.

                                  Experimentation opt-out does not suppress flag evaluation telemetry. Enable flag evaluation opt-out separately if both controls are needed. Immediate withdrawal can change a subject’s experience during an experiment; account for this when interpreting experiment results.

                                  Opt-out with application-managed configuration

                                  DatadogCoreProvider accepts both controls and applies experimentation exclusion locally to rules-based configuration. Datadog evaluation and RUM tracking hooks honor its flag evaluation telemetry policy; exposure hooks remain enabled.

                                  For precomputed configuration, pass the same experimentationOptOutMode to fetchPrecomputedConfiguration and the provider. Pass the same context, including opt-out attributes, to the fetch function and OpenFeature. Your application must fetch replacement assignments when the context changes. Precomputed experimentation opt-out requires backend support for the selected mode.

                                  See Browser Rules-Based Evaluation for configuration and tracking-hook setup.

                                  Advanced: application-managed configuration

                                  Use DatadogCoreProvider from @datadog/openfeature-browser/rules-based in SDK 2.0.0 and later only when your application needs to own configuration delivery or evaluate rules locally across context changes. Your application supplies and refreshes configuration with setConfiguration() and explicitly registers and manages any tracking hooks.

                                  For setup, configuration formats, and optional tracking, see Browser Rules-Based Evaluation. Keep DatadogProvider for the managed setup described on this page.

                                  Override flags in your browser

                                  To browse your organization’s flags and override them locally while you develop, compose the DatadogDevtools wrapper into your provider stack and use the Feature Flags tab in the Datadog Browser SDK developer extension.

                                  Testing

                                  You can test against a dedicated Datadog test environment with the real DatadogProvider, or swap it for OpenFeature’s InMemoryProvider to control flag values directly in test code. This section shows the in-memory approach, which keeps tests hermetic and offline. InMemoryProvider is exported directly from @openfeature/web-sdk, so no additional dependency is required.

                                  Unlike the server-side SDK, the Web SDK evaluates flags synchronously after initialization. Still await setProviderAndWait once in beforeEach to ensure the provider is ready.

                                  import { beforeEach, afterAll, expect, test } from 'vitest';
                                  import { OpenFeature, TypedInMemoryProvider } from '@openfeature/web-sdk';
                                  
                                  const flags = {
                                    new_checkout_button: {
                                      variants: { on: true, off: false },
                                      defaultVariant: 'on',
                                      disabled: false,
                                    },
                                    ui_theme: {
                                      variants: { dark: 'dark', light: 'light' },
                                      defaultVariant: 'light',
                                      disabled: false,
                                    },
                                  };
                                  
                                  beforeEach(async () => {
                                    await OpenFeature.setProviderAndWait(new TypedInMemoryProvider(flags));
                                  });
                                  
                                  afterAll(async () => {
                                    await OpenFeature.close();
                                  });
                                  
                                  test('new checkout button is enabled by default', () => {
                                    const client = OpenFeature.getClient();
                                    expect(client.getBooleanValue('new_checkout_button', false)).toBe(true);
                                  });
                                  
                                  test('missing flag returns default', () => {
                                    const client = OpenFeature.getClient();
                                    expect(client.getBooleanValue('does-not-exist', false)).toBe(false);
                                  });

                                  The Web SDK flag shape requires variants, defaultVariant, and disabled. Omitting any of these fails TypeScript compilation; at runtime, evaluating an unknown flag key returns the supplied default. Prefer TypedInMemoryProvider over the deprecated InMemoryProvider for type-checked flag configurations. The same test pattern works with Jest + jsdom; swap the vitest imports for @jest/globals and add jest-environment-jsdom to your project.

                                  Further reading

                                  Additional helpful documentation, links, and articles:

                                  Client-Side Feature FlagsDOCUMENTATION OpenFeature Web SDKOPENFEATURE Browser MonitoringDOCUMENTATION Browser Developer ExtensionDOCUMENTATION Proxy Feature Flag SDK TrafficGUIDE Browser Rules-Based EvaluationDOCUMENTATION

                                  Language

                                  English Français 日本語 한국어 Español

                                  Datadog Site

                                  Site help
                                  US1 US3 US5 EU AP1 AP2 UK1 US1-FED US2-FED
                                  Edit
                                  CopyCopied

                                  On this Page

                                  You are visitor 01402775 — GeezerVison does not store the pages you look up.
                                  Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.