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 — Java Feature Flags

For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/feature_flags/server/java.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

                                Java Feature Flags

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

                                Overview

                                The Datadog Java provider implements the OpenFeature standard and evaluates flags locally. Agentless delivery is the default. The provider receives flag configuration directly from Datadog without a Datadog Agent or dd-java-agent.

                                Getting started

                                Use Java 11 or later. Create a Boolean flag named my-feature. Enable its Server distribution channel and enable it in the target environment.

                                1. Add com.datadoghq:dd-openfeature:1.69.0 to your application. It includes the OpenFeature SDK dependency.

                                  build.gradle

                                  dependencies {
                                      implementation 'com.datadoghq:dd-openfeature:1.69.0'
                                  }

                                  build.gradle.kts

                                  dependencies {
                                      implementation("com.datadoghq:dd-openfeature:1.69.0")
                                  }

                                  pom.xml

                                  <dependency>
                                      <groupId>com.datadoghq</groupId>
                                      <artifactId>dd-openfeature</artifactId>
                                      <version>1.69.0</version>
                                  </dependency>
                                  1. Set your Datadog API key and flag environment in the application process:
                                  export DD_API_KEY='<DATADOG_API_KEY>'
                                  export DD_ENV='<YOUR_ENVIRONMENT>'

                                  If your organization uses a site other than datadoghq.com, set DD_SITE.

                                  1. Register the provider, wait for configuration, and evaluate your flag:
                                  import com.datadog.openfeature.Provider;
                                  import dev.openfeature.sdk.MutableContext;
                                  import dev.openfeature.sdk.OpenFeatureAPI;
                                  
                                  public class App {
                                      public static void main(String[] args) throws Exception {
                                          OpenFeatureAPI api = OpenFeatureAPI.getInstance();
                                          api.setProviderAndWait(new Provider());
                                          boolean enabled = api.getClient().getBooleanValue(
                                              "my-feature", false, new MutableContext("user-123"));
                                      }
                                  }

                                  Replace my-feature with your flag key and user-123 with a stable subject identifier.

                                  No Feature Flags enablement or configuration source setting is required. For an existing Agent setup, see Migrate an existing Remote Configuration setup.

                                  Compatibility requirements

                                  • Java 11 or later
                                  • Datadog OpenFeature provider (com.datadoghq:dd-openfeature): Version 1.69.0 or later
                                  • OpenFeature SDK: Version 1.23.0 or later, included with dd-openfeature

                                  Agentless delivery requires an API key in the application process and outbound HTTPS access to Datadog. Set DD_ENV to the environment that contains your flag configuration. If your organization uses a site other than datadoghq.com, set DD_SITE. DD_SERVICE and DD_VERSION are optional metadata.

                                  Settings use the attached Java agent configuration first, then dd. JVM system properties, then environment variables. If you manage OpenFeature dependencies separately, use OpenFeature SDK 1.23.0 or later so provider hooks run inside a MultiProvider.

                                  Initialize the OpenFeature provider

                                  Initialize the Datadog OpenFeature provider in your application startup code. The provider starts the selected configuration source.

                                  import dev.openfeature.sdk.OpenFeatureAPI;
                                  import dev.openfeature.sdk.Client;
                                  import com.datadog.openfeature.Provider;
                                  import dev.openfeature.sdk.exceptions.ProviderNotReadyError;
                                  import org.slf4j.Logger;
                                  import org.slf4j.LoggerFactory;
                                  
                                  public class App {
                                      private static final Logger logger = LoggerFactory.getLogger(App.class);
                                      private static Client client;
                                  
                                      public static void main(String[] args) throws Exception {
                                          // Initialize the Datadog provider
                                          logger.info("Initializing Datadog OpenFeature Provider...");
                                          OpenFeatureAPI api = OpenFeatureAPI.getInstance();
                                  
                                          try {
                                              // Set provider and wait for initial configuration (recommended)
                                              api.setProviderAndWait(new Provider());
                                              client = api.getClient("my-app");
                                              logger.info("OpenFeature provider initialized successfully");
                                          } catch (ProviderNotReadyError e) {
                                              // Handle gracefully - app will use default flag values
                                              logger.warn("Provider not ready (configuration unavailable), continuing with defaults", e);
                                              client = api.getClient("my-app");
                                              logger.info("App will use default flag values until provider is ready");
                                          } catch (Exception e) {
                                              logger.error("Failed to initialize OpenFeature provider", e);
                                              throw e;
                                          }
                                  
                                          // Your application code here
                                      }
                                  }

                                  Use setProviderAndWait() to block evaluation until the selected source provides the initial flag configuration. This loads flags before the application starts serving traffic. The default initialization timeout is 30 seconds.

                                  ProviderNotReadyError is an OpenFeature SDK exception thrown when the provider times out during initialization. Catching it allows the application to start with default flag values if configuration delivery is unavailable. If not caught, the exception propagates and may prevent application startup. Handle this based on your availability requirements.

                                  Asynchronous initialization

                                  For non-blocking initialization, use setProvider() and listen for provider events:

                                  import dev.openfeature.sdk.ProviderEvent;
                                  
                                  OpenFeatureAPI api = OpenFeatureAPI.getInstance();
                                  Client client = api.getClient();
                                  
                                  // Listen for provider state changes
                                  client.on(ProviderEvent.PROVIDER_READY, (event) -> {
                                      logger.info("Feature flags ready!");
                                  });
                                  
                                  client.on(ProviderEvent.PROVIDER_ERROR, (event) -> {
                                      logger.error("Provider error: {}", event.getMessage());
                                  });
                                  
                                  client.on(ProviderEvent.PROVIDER_STALE, (event) -> {
                                      logger.warn("Provider configuration is stale");
                                  });
                                  
                                  // Set provider asynchronously
                                  api.setProvider(new Provider());

                                  Set the evaluation context

                                  The evaluation context defines the subject (user, device, session) for flag evaluation. It determines which flag variations are returned based on targeting rules.

                                  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.
                                  import dev.openfeature.sdk.EvaluationContext;
                                  import dev.openfeature.sdk.MutableContext;
                                  
                                  // Create an evaluation context with a targeting key and attributes
                                  EvaluationContext context = new MutableContext("user-123")
                                      .add("email", "[email protected]")
                                      .add("tier", "premium");
                                  
                                  // Use the context for flag evaluations (see next section)

                                  The targetingKey (for example, user-123) is the primary identifier used for consistent flag evaluations and percentage-based rollouts. It’s typically a user ID, session ID, or device ID.

                                  Control flag evaluation telemetry and experiment participation

                                  Telemetry opt-out requires dd-openfeature version 1.68.0 or later. Experimentation opt-out requires dd-openfeature version 1.69.0 or later. The combined example requires 1.69.0 or later. Both controls are independent and disabled by default. See Flag Evaluation and Experimentation Opt-Out for shared behavior.

                                  Set these variables before constructing the provider:

                                  export DD_FEATURE_FLAGS_EVALUATION_TELEMETRY_PER_SUBJECT_OPT_OUT_ENABLED=true
                                  export DD_FEATURE_FLAGS_EXPERIMENTATION_OPT_OUT_MODE=immediate
                                  

                                  Initialize the provider during startup. Pass both preferences in a context for each evaluation:

                                  import com.datadog.openfeature.Provider;
                                  import dev.openfeature.sdk.MutableContext;
                                  import dev.openfeature.sdk.OpenFeatureAPI;
                                  
                                  OpenFeatureAPI api = OpenFeatureAPI.getInstance();
                                  api.setProviderAndWait(new Provider());
                                  
                                  MutableContext context = new MutableContext("user-123")
                                      .add("dd_evaluation_telemetry_opt_out", true)
                                      .add("dd_experimentation_opt_out_at", "2026-10-30T12:00:00Z");
                                  boolean enabled = api.getClient().getBooleanValue("new-checkout", false, context);
                                  

                                  Replace the example timestamp with the subject’s stored preference. Preserve existing configuration delivery and Java agent requirements for the selected setup.

                                  For programmatic configuration, use new Provider.Options().enableEvaluationTelemetryOptOutParameter(true) and .experimentationOptOutMode(ExperimentationOptOutMode.IMMEDIATE). Import ExperimentationOptOutMode from com.datadog.openfeature. Explicit options override deployment settings. DEFAULT uses deployment settings; DISABLED overrides them.

                                  Use future_experiments_only or ExperimentationOptOutMode.FUTURE_EXPERIMENTS_ONLY to retain allocations activated strictly before the timestamp. Invalid subject timestamps return the default with INVALID_CONTEXT in either enabled mode. Invalid activation metadata returns PARSE_ERROR for the affected flag when an opted-out subject uses future-experiments-only mode.

                                  Telemetry opt-out suppresses new evaluation events and counts, evaluation metrics, and automatic flag span annotations. Exposures remain enabled for eligible allocations. Do not update the global context for individual requests. To resume telemetry, supply Boolean false or remove the attribute. To permit experimentation again, remove the timestamp. See Configure server SDKs for how inherited context values apply.

                                  Evaluate flags

                                  Evaluate feature flags using the OpenFeature client. All flag types are supported: Boolean, string, integer, double, and object.

                                    // Simple Boolean evaluation
                                    boolean enabled = client.getBooleanValue("checkout.new", false, context);
                                    
                                    if (enabled) {
                                        // New checkout flow
                                    } else {
                                        // Old checkout flow
                                    }
                                    
                                    // Get detailed evaluation result
                                    import dev.openfeature.sdk.FlagEvaluationDetails;
                                    
                                    FlagEvaluationDetails<Boolean> details =
                                        client.getBooleanDetails("checkout.new", false, context);
                                    
                                    logger.info("Value: {}", details.getValue());
                                    logger.info("Variant: {}", details.getVariant());
                                    logger.info("Reason: {}", details.getReason());
                                    // Evaluate string flags (e.g., UI themes, API endpoints)
                                    String theme = client.getStringValue("ui.theme", "light", context);
                                    
                                    String apiEndpoint = client.getStringValue(
                                        "payment.api.endpoint",
                                        "https://api.example.com/v1",
                                        context
                                    );
                                    // Integer flags (e.g., limits, quotas)
                                    int maxRetries = client.getIntegerValue("retries.max", 3, context);
                                    
                                    // Double flags (e.g., thresholds, rates)
                                    double discountRate = client.getDoubleValue("pricing.discount.rate", 0.0, context);
                                    import dev.openfeature.sdk.Value;
                                    
                                    // Evaluate object/JSON flags for complex configuration
                                    Value config = client.getObjectValue("ui.config", new Value(), context);
                                    
                                    // Access structured data
                                    if (config.isStructure()) {
                                        Value timeout = config.asStructure().getValue("timeout");
                                        Value endpoint = config.asStructure().getValue("endpoint");
                                    }

                                    Error handling

                                    The OpenFeature SDK uses a default value pattern. If evaluation fails for any reason, the default value you provide is returned.

                                    import dev.openfeature.sdk.ErrorCode;
                                    
                                    // Check evaluation details for errors
                                    FlagEvaluationDetails<Boolean> details =
                                        client.getBooleanDetails("checkout.new", false, context);
                                    
                                    if (details.getErrorCode() != null) {
                                        switch (details.getErrorCode()) {
                                            case FLAG_NOT_FOUND:
                                                logger.warn("Flag does not exist: {}", "checkout.new");
                                                break;
                                            case PROVIDER_NOT_READY:
                                                logger.warn("Provider not initialized yet");
                                                break;
                                            case TARGETING_KEY_MISSING:
                                                logger.warn("Evaluation context missing targeting key");
                                                break;
                                            case TYPE_MISMATCH:
                                                logger.error("Flag value type doesn't match requested type");
                                                break;
                                            default:
                                                logger.error("Evaluation error for flag: {}", "checkout.new", details.getErrorCode());
                                        }
                                    }

                                    Common error codes

                                    Error CodeDescriptionResolution
                                    PROVIDER_NOT_READYInitial configuration not receivedWait for provider initialization or use setProviderAndWait()
                                    FLAG_NOT_FOUNDFlag doesn’t exist in configurationCheck flag key or create flag in Datadog UI
                                    TARGETING_KEY_MISSINGNo targeting key in evaluation contextProvide a targeting key when creating context
                                    TYPE_MISMATCHFlag value can’t be converted to requested typeUse correct evaluation method for flag type
                                    INVALID_CONTEXTEvaluation context is nullProvide a valid evaluation context

                                    Advanced configuration

                                    Use Server SDK Configuration Sources as the canonical reference for source selection and operational settings:

                                    • Configure agentless delivery, including polling, request timeout, and endpoint settings
                                    • Use a custom agentless endpoint for advanced testing, local development, or an operator-managed proxy
                                    • Use Agent delivery to receive configuration through Remote Configuration
                                    • Migrate an existing Remote Configuration setup and remove the deprecated DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED setting
                                    • Start the Agent before the application when you use Agent delivery

                                    The standalone provider sends experiment exposures and aggregated flag evaluation events directly to Datadog. This path uses the application DD_API_KEY and DD_SITE settings. With dd-java-agent attached, agentless delivery prefers the Datadog Agent event proxy and can fall back to direct delivery.

                                    The feature_flag.evaluations metric uses the separate OTLP setup in the Server-Side Flag Evaluation Metrics guide.

                                    For more information on available graphing, see Feature Flag Graphs.

                                    Collect traces with flag evaluations

                                    Use this optional setup to inspect request errors and latency by flag variant. Configure Java APM tracing and verify that traces reach Datadog. Use dd-java-agent 1.69.0 or later.

                                    Enable APM trace enrichment and load the Java agent when starting the application:

                                    export DD_EXPERIMENTAL_FLAGGING_PROVIDER_SPAN_ENRICHMENT_ENABLED=true
                                    java -javaagent:/path/to/dd-java-agent.jar -jar your-application.jar
                                    

                                    Evaluate flags during traced requests. The SDK attaches flag evaluation data to the active trace’s root span. Keep the application’s existing flag configuration source. Tracing and enrichment do not require changing it.

                                    The minimum setup in Getting started remains sufficient to receive and evaluate flags. Add the Java agent when collecting traces or attaching evaluations to them.

                                    Use Agent delivery

                                    To receive flag configuration through a Datadog Agent, use dd-openfeature and dd-java-agent version 1.69.0 or later. This setup requires both the Java agent in the application JVM and a separate Datadog Agent service.

                                    1. Configure Agent 7.55 or later with an API key, your Datadog site, and Remote Configuration enabled. See Use Agent delivery.
                                    2. Load dd-java-agent with the -javaagent JVM option and select remote_config:
                                    export DD_ENV='<YOUR_ENVIRONMENT>'
                                    export DD_FEATURE_FLAGS_CONFIGURATION_SOURCE=remote_config
                                    
                                    java -javaagent:/path/to/dd-java-agent.jar -jar your-application.jar

                                    For Java agent installation instructions, see Add the Java SDK to the JVM. If your runtime controls the Java command, set -javaagent through JAVA_TOOL_OPTIONS.

                                    1. Register com.datadog.openfeature.Provider as shown in Getting started.

                                    Remote Configuration does not fall back to agentless delivery. To switch an existing installation, follow Migrate an existing Remote Configuration setup.

                                    Application shutdown

                                    Call OpenFeatureAPI.getInstance().shutdown() during application shutdown to stop polling and flush pending events. The provider also registers a JVM shutdown hook when it runs without the Java agent.

                                    Custom initialization timeout

                                    Configure how long the provider waits for initial configuration:

                                    import com.datadog.openfeature.Provider;
                                    import java.util.concurrent.TimeUnit;
                                    
                                    Provider.Options options = new Provider.Options()
                                        .initTimeout(10, TimeUnit.SECONDS);
                                    
                                    api.setProviderAndWait(new Provider(options));

                                    Configuration change events

                                    Listen for updates from the selected configuration source:

                                    import dev.openfeature.sdk.ProviderEvent;
                                    
                                    client.on(ProviderEvent.PROVIDER_CONFIGURATION_CHANGED, (event) -> {
                                        logger.info("Flag configuration updated: {}", event.getMessage());
                                        // Optionally re-evaluate flags or trigger cache refresh
                                    });

                                    After the provider is ready, it emits PROVIDER_CONFIGURATION_CHANGED for each new flag configuration that it receives.

                                    Multiple clients

                                    Use named clients to organize context and flags by domain or team:

                                    // Named clients share the same provider instance but can have different contexts
                                    Client checkoutClient = api.getClient("checkout");
                                    Client analyticsClient = api.getClient("analytics");
                                    
                                    // Each client can have its own evaluation context
                                    EvaluationContext checkoutContext = new MutableContext("session-abc");
                                    EvaluationContext analyticsContext = new MutableContext("user-123");
                                    
                                    boolean newCheckout = checkoutClient.getBooleanValue(
                                        "checkout.ui.new", false, checkoutContext
                                    );
                                    
                                    boolean enhancedAnalytics = analyticsClient.getBooleanValue(
                                        "analytics.enhanced", false, analyticsContext
                                    );

                                    The Provider instance is shared globally. Client names are for organizational purposes only and don’t create separate provider instances. All clients use the same underlying Datadog provider and flag configurations.

                                    Record exposures in your own data store

                                    Use com.datadog.openfeature.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 DD_FEATURE_FLAGS_EXPOSURES_DATADOG_LOGGING_ENABLED=false. See Record Feature Flag Exposures in Your Own Data Store.

                                    Best practices

                                    Initialize early

                                    Initialize the OpenFeature provider as early as possible in your application lifecycle (for example, in main() or application startup). This helps ensure flags are ready before business logic executes.

                                    Use meaningful default values

                                    Always provide sensible default values that maintain safe behavior if flag evaluation fails:

                                    // Good: Safe default that maintains current behavior
                                    boolean useNewAlgorithm = client.getBooleanValue("algorithm.new", false, context);
                                    
                                    // Good: Conservative default for limits
                                    int rateLimit = client.getIntegerValue("rate.limit", 100, context);

                                    Create context once

                                    Create the evaluation context once per request/user/session and reuse it for all flag evaluations:

                                    // In a web filter or request handler
                                    EvaluationContext userContext = new MutableContext(userId)
                                        .add("email", user.getEmail())
                                        .add("tier", user.getTier());
                                    
                                    // Reuse context for all flags in this request
                                    boolean featureA = client.getBooleanValue("feature.a", false, userContext);
                                    boolean featureB = client.getBooleanValue("feature.b", false, userContext);

                                    Rebuilding the evaluation context for every flag evaluation adds unnecessary overhead. Create the context once at the start of the request lifecycle, then pass it to all subsequent flag evaluations.

                                    Handle initialization failures (optional)

                                    Consider handling initialization failures if your application can function with default flag values:

                                    try {
                                        api.setProviderAndWait(new Provider());
                                    } catch (ProviderNotReadyError e) {
                                        // Log error and continue with defaults
                                        logger.warn("Feature flags not ready, using defaults", e);
                                        // Application will use default values for all flags
                                    }

                                    If feature flags are critical for your application to function, let the exception propagate to prevent startup.

                                    Use consistent targeting keys

                                    Use consistent, stable identifiers as targeting keys:

                                    • Good: User IDs, session IDs, device IDs
                                    • Avoid: Timestamps, random values, frequently changing IDs

                                    Monitor flag evaluation

                                    Use the detailed evaluation results for logging and debugging:

                                    FlagEvaluationDetails<Boolean> details =
                                        client.getBooleanDetails("feature.critical", false, context);
                                    
                                    logger.info("Flag: {} | Value: {} | Variant: {} | Reason: {}",
                                        "feature.critical",
                                        details.getValue(),
                                        details.getVariant(),
                                        details.getReason()
                                    );

                                    Evaluation events and privacy

                                    Use dd-openfeature and dd-java-agent 1.68.0 or later for targeting-key hashing and environment-controlled context collection in EVP flag evaluation events. These events are enabled by default. Set DD_FLAGGING_EVALUATION_COUNTS_ENABLED=false to disable only this event path. See Server-Side Evaluation Events and Privacy for the data collected, opt-out scope, and delivery requirements.

                                    Testing

                                    Test against a dedicated Datadog environment with com.datadog.openfeature.Provider, or use OpenFeature’s InMemoryProvider to control flag values in tests. The following example uses InMemoryProvider for offline tests. It ships in the OpenFeature SDK dependency included with dd-openfeature.

                                    import dev.openfeature.sdk.Client;
                                    import dev.openfeature.sdk.OpenFeatureAPI;
                                    import dev.openfeature.sdk.providers.memory.Flag;
                                    import dev.openfeature.sdk.providers.memory.InMemoryProvider;
                                    import java.util.Map;
                                    import org.junit.jupiter.api.*;
                                    import static org.junit.jupiter.api.Assertions.*;
                                    
                                    class CheckoutFlagTest {
                                        private Client client;
                                    
                                        @BeforeEach
                                        void setUp() {
                                            Map<String, Flag<?>> flags = Map.of(
                                                "new-checkout-flow", Flag.<Boolean>builder()
                                                    .variant("on", true)
                                                    .variant("off", false)
                                                    .defaultVariant("on")
                                                    .build(),
                                                "ui-theme", Flag.<String>builder()
                                                    .variant("dark", "dark")
                                                    .variant("light", "light")
                                                    .defaultVariant("light")
                                                    .build()
                                            );
                                    
                                            OpenFeatureAPI api = OpenFeatureAPI.getInstance();
                                            api.setProviderAndWait(new InMemoryProvider(flags));
                                            client = api.getClient();
                                        }
                                    
                                        @AfterEach
                                        void tearDown() {
                                            OpenFeatureAPI.getInstance().shutdown();
                                        }
                                    
                                        @Test
                                        void newCheckoutEnabledByDefault() {
                                            assertTrue(client.getBooleanValue("new-checkout-flow", false));
                                        }
                                    
                                        @Test
                                        void missingFlagReturnsDefault() {
                                            assertFalse(client.getBooleanValue("does-not-exist", false));
                                        }
                                    }

                                    OpenFeatureAPI.getInstance() is a singleton. Always call shutdown() in @AfterEach (or equivalent); otherwise, provider state leaks between test classes and causes flaky suites.

                                    In Spring Boot tests, register the InMemoryProvider through a @TestConfiguration bean or in a @BeforeAll hook on an @SpringBootTest class — the OpenFeature API singleton persists for the lifetime of the Spring context, so initialization only needs to run once.

                                    Troubleshooting

                                    Follow the flag data path from the Flagging Platform through the selected configuration source to the Java SDK. Agentless and Remote Configuration have different requirements. Verify the active source before you troubleshoot connectivity.

                                    1. Flagging platform: Verify flag configuration

                                    Before checking infrastructure, confirm the flag itself is set up correctly:

                                    1. The flag is enabled for the target environment, not disabled. Flags are disabled by default in each environment.
                                    2. The flag targets the correct environment (DD_ENV). Flags do not target specific services—they apply to all services within the enabled environment.
                                    3. Your DD_ENV value appears in Feature Flag Environments. If it is absent, the environment has not received any flag traffic yet.

                                    2. Verify the configuration source

                                    Agentless delivery

                                    1. Confirm that dd-openfeature is version 1.69.0 or later.
                                    2. Confirm that DD_FEATURE_FLAGS_ENABLED is unset or set to true.
                                    3. Confirm that DD_FEATURE_FLAGS_CONFIGURATION_SOURCE=agentless is set, or that the source and legacy provider settings are unset.
                                    4. Confirm that application code initializes com.datadog.openfeature.Provider.
                                    5. Confirm that the application process has DD_API_KEY and the correct DD_ENV. If your organization uses a site other than datadoghq.com, confirm that DD_SITE is set.
                                    6. Confirm that the application can make outbound HTTPS requests to Datadog.
                                    7. Enable debug logging and check for authentication, timeout, or malformed configuration messages.

                                    Agent delivery

                                    1. Confirm that dd-openfeature and dd-java-agent are version 1.69.0 or later.
                                    2. Confirm that the JVM loads dd-java-agent with -javaagent.
                                    3. Confirm that DD_FEATURE_FLAGS_CONFIGURATION_SOURCE=remote_config is set.
                                    4. Confirm that DD_FEATURE_FLAGS_ENABLED is unset or set to true.
                                    5. Confirm that Agent 7.55 or later is running and reachable. See APM Connection Errors.
                                    6. Confirm that Remote Configuration is enabled on the Agent. See Remote Configuration.
                                    7. Confirm that the Agent has a valid API key and the correct DD_SITE.
                                    8. Run datadog-agent status and review the Remote Configuration section. See Agent Commands.

                                    3. SDK: Verify Java SDK state

                                    Enable debug logging

                                    Enable DEBUG logging for com.datadog.openfeature in your application logging configuration. With agentless delivery, confirm that configuration polling starts after provider initialization. Set DD_TRACE_DEBUG=true to also enable evaluation diagnostics.

                                    With remote_config, the provider requires the Java agent connection. If the connection is unavailable, evaluations return caller defaults with PROVIDER_NOT_READY. Provider registration alone does not confirm configuration delivery. The provider does not fall back to agentless delivery.

                                    Monitor provider state changes

                                    Add event listeners early in application startup to observe provider life cycle transitions. Event listeners detect connectivity changes after initialization:

                                    import dev.openfeature.sdk.ProviderEvent;
                                    
                                    client.on(ProviderEvent.PROVIDER_READY, (event) -> {
                                        logger.info("Feature flag provider is ready");
                                    });
                                    
                                    client.on(ProviderEvent.PROVIDER_ERROR, (event) -> {
                                        logger.error("Feature flag provider error: {}", event.getMessage());
                                    });
                                    
                                    client.on(ProviderEvent.PROVIDER_STALE, (event) -> {
                                        logger.warn("Feature flag provider configuration is stale");
                                    });
                                    
                                    client.on(ProviderEvent.PROVIDER_CONFIGURATION_CHANGED, (event) -> {
                                        logger.info("Feature flag configuration updated");
                                    });

                                    A PROVIDER_ERROR or PROVIDER_STALE event after normal operation indicates a disruption in the selected configuration source.

                                    Provider not ready

                                    PROVIDER_NOT_READY is returned when flag evaluation is attempted before the provider receives its first configuration from the selected source.

                                    Common causes:

                                    • Asynchronous initialization: setProvider() was used instead of setProviderAndWait(). Evaluations before the first configuration arrives return PROVIDER_NOT_READY.
                                    • Initialization timeout: setProviderAndWait() timed out (default 30 seconds) and threw ProviderNotReadyError, which was caught. The application continues evaluating flags while waiting for the first configuration.

                                    If PROVIDER_NOT_READY persists beyond the polling and initialization intervals, verify the selected source again.

                                    Debug flag evaluations

                                    If flags return unexpected values, use getBooleanDetails() instead of getBooleanValue(). The Details variant returns a FlagEvaluationDetails object exposing the provider’s internal state:

                                    FlagEvaluationDetails<Boolean> details =
                                        client.getBooleanDetails("your.flag.key", false, context);
                                    
                                    logger.info("Flag evaluation details: value={}, variant={}, reason={}, errorCode={}",
                                        details.getValue(),
                                        details.getVariant(),
                                        details.getReason(),
                                        details.getErrorCode());

                                    Review reason and errorCode to understand why the provider returned a given result.

                                    Type mismatch errors

                                    TYPE_MISMATCH is returned when the evaluation method does not match the flag’s configured type. Use the correct method for each flag type: getBooleanValue(), getStringValue(), getIntegerValue(), getDoubleValue().

                                    4. Flagging platform: Verify data appears in Datadog

                                    When no supported telemetry path is configured, Java does not export exposure events or the feature_flag.evaluations metric. Their absence does not indicate that configuration loading or local evaluation failed.

                                    Flag evaluation metrics

                                    Flag evaluation counts appear in Datadog as a feature_flag.evaluations counter metric tagged with the flag key, result variant, and evaluation reason. See Set Up Server-Side Flag Evaluation Metrics for the full setup guide and troubleshooting steps.

                                    Experiment exposures

                                    When the selected configuration path supports exposures, exposures appear only for flags associated with an experiment. Standard feature flags do not generate exposure events. If exposures are missing:

                                    1. Verify the flag is associated with an experiment in the Datadog UI.
                                    2. With standalone agentless delivery, verify the application API key, site, and outbound HTTPS connectivity. If you use the Agent event proxy, verify Agent connectivity.
                                    3. If you use Agent delivery, verify that the Agent was available when the application started. If it was not, restart the application. See Agent availability.

                                    Further reading

                                    Additional helpful documentation, links, and articles:

                                    Server-Side Feature FlagsDOCUMENTATION Java APM and Distributed TracingDOCUMENTATION Set Up Server-Side Flag Evaluation MetricsGUIDE Set Up APM Trace Enrichment for Feature FlagsGUIDE Feature Flag GraphsCONCEPT Server SDK Configuration SourcesCONCEPT

                                    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.