> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corti.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# error.featureFlagDiscrepancyDetected

> Emitted when feature flag providers return different client-side values.

## Event Properties

| Field          | Value                                    |
| -------------- | ---------------------------------------- |
| `event`        | `"error.featureFlagDiscrepancyDetected"` |
| `confidential` | `boolean`                                |
| `payload`      | `object`                                 |

<Tabs>
  <Tab title="Public Payload">
    | Field                   | Type                                 | Description |
    | ----------------------- | ------------------------------------ | ----------- |
    | `featureKey`            | `string`                             | -           |
    | `severity`              | `"warning" \| "error"`               | -           |
    | `reason`                | `"flag_unknown" \| "value_mismatch"` | -           |
    | `activeProvider`        | `string`                             | -           |
    | `activeProviderLabel`   | `string`                             | -           |
    | `activeValue`           | `unknown`                            | -           |
    | `comparedProvider`      | `string`                             | -           |
    | `comparedProviderLabel` | `string`                             | -           |
    | `comparedValue`         | `unknown`                            | -           |

    #### Example

    ```json theme={null}
    {
      "event": "error.featureFlagDiscrepancyDetected",
      "confidential": false,
      "payload": {
        "featureKey": "example-feature",
        "severity": "error",
        "reason": "value_mismatch",
        "activeProvider": "growthbook",
        "activeProviderLabel": "GrowthBook",
        "activeValue": true,
        "comparedProvider": "posthog",
        "comparedProviderLabel": "PostHog",
        "comparedValue": false
      }
    }
    ```
  </Tab>

  <Tab title="Confidential Payload">
    | Field                   | Type                                 | Description |
    | ----------------------- | ------------------------------------ | ----------- |
    | `featureKey`            | `string`                             | -           |
    | `severity`              | `"warning" \| "error"`               | -           |
    | `reason`                | `"flag_unknown" \| "value_mismatch"` | -           |
    | `activeProvider`        | `string`                             | -           |
    | `activeProviderLabel`   | `string`                             | -           |
    | `activeValue`           | `unknown`                            | -           |
    | `comparedProvider`      | `string`                             | -           |
    | `comparedProviderLabel` | `string`                             | -           |
    | `comparedValue`         | `unknown`                            | -           |

    #### Example

    ```json theme={null}
    {
      "event": "error.featureFlagDiscrepancyDetected",
      "confidential": true,
      "payload": {
        "featureKey": "example-feature",
        "severity": "error",
        "reason": "value_mismatch",
        "activeProvider": "growthbook",
        "activeProviderLabel": "GrowthBook",
        "activeValue": true,
        "comparedProvider": "posthog",
        "comparedProviderLabel": "PostHog",
        "comparedValue": false
      }
    }
    ```
  </Tab>
</Tabs>
