Skip to content

[AI] Add App Version metadata to Firebase AI Logic monitoring requests #8801

@senrecep

Description

@senrecep

Feature Request

Describe the feature

When using @react-native-firebase/ai SDK to make AI requests (e.g., generateContent, generateContentStream), the Firebase AI Logic monitoring panel in Firebase Console shows "unknown" for the "App version" field in the Traces section.

Why is this feature needed?

  • Track AI usage across different app versions
  • Debug issues specific to certain app versions
  • Analyze AI performance metrics by app version

Describe the solution you'd like

The SDK should automatically include the app version in the API request headers by adding X-Firebase-App-Version header in the getHeaders function (lib/requests/request.ts).

The X-Firebase-Appid header is already being sent, so adding app version should follow the same pattern.

Platforms affected

  • iOS
  • Android

Related module

@react-native-firebase/ai

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions