Skip to content

feat: add custom version parameter#2586

Merged
dd-mergequeue[bot] merged 2 commits into
DataDog:developfrom
blimmer:add-version-config
Nov 25, 2025
Merged

feat: add custom version parameter#2586
dd-mergequeue[bot] merged 2 commits into
DataDog:developfrom
blimmer:add-version-config

Conversation

@blimmer

@blimmer blimmer commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

What and why?

Add a public version configuration parameter to allow native iOS applications to explicitly set their app version for Unified Service Tagging. This addresses the need to identify TestFlight builds with specific build numbers (e.g., 1.0.0-1234) for better correlation of logs and errors in Datadog.

Previously, developers had to use undocumented internal APIs like DatadogCore.set(customVersion:) or cross-platform-specific configuration, both of which are unsupported for native iOS use.

Fixes #2585

How?

  • Added optional version property to both Datadog.Configuration (Swift) and objc_Configuration
    (Objective-C)
  • Updated version resolution logic in Datadog.swift with clear precedence: cross-platform override →
    explicit version config → bundle Info.plist values → default
  • Added comprehensive tests covering the new property and precedence rules
  • Maintains full backward compatibility (optional parameter defaults to nil)

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes
  • Add Objective-C interface for public APIs (see our guidelines (internal) and run make api-surface)

Add support for configuring a custom version parameter in DatadogConfiguration.

Fixes DataDog#2585
@blimmer
blimmer requested a review from a team as a code owner November 20, 2025 15:29

@barboraplasovska barboraplasovska left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thank you for the contribution 🙌

@barboraplasovska

Copy link
Copy Markdown
Contributor

/merge

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Nov 25, 2025

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2025-11-25 12:07:13 UTC ℹ️ Start processing command /merge


2025-11-25 12:07:18 UTC ℹ️ MergeQueue: waiting for PR to be ready

This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2025-11-25 14:43:06 UTC ℹ️ MergeQueue: merge request added to the queue

The expected merge time in develop is approximately 2h (p90).


2025-11-25 15:26:50 UTC ℹ️ MergeQueue: This merge request was merged

@simaoseica-dd simaoseica-dd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution @blimmer 🙏

@barboraplasovska

Copy link
Copy Markdown
Contributor

/merge

@dd-devflow-routing-codex

dd-devflow-routing-codex Bot commented Nov 25, 2025

Copy link
Copy Markdown

View all feedbacks in Devflow UI.

2025-11-25 14:49:22 UTC ℹ️ Start processing command /merge


2025-11-25 14:49:24 UTC ❌ MergeQueue

PR already in the queue with status in_progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Public API to Override Application Version for Native iOS Apps

3 participants