Skip to content

feat: Bridging hooks calls from MAUI#142

Merged
abelonogov-ld merged 3 commits intomainfrom
andrey/bridge
Feb 27, 2026
Merged

feat: Bridging hooks calls from MAUI#142
abelonogov-ld merged 3 commits intomainfrom
andrey/bridge

Conversation

@abelonogov-ld
Copy link
Copy Markdown
Contributor

@abelonogov-ld abelonogov-ld commented Feb 26, 2026

  • Expose hooks for MAUI
  • Fix sending internal traces through Customer API

Note

Medium Risk
Changes hook/span lifecycle handling and tracing client plumbing, and introduces new thread-safe caching structures; mistakes could cause missing/duplicated spans or incorrect telemetry attributes.

Overview
Adds MAUI hook bridging by introducing ObservabilityHookProxy (stored on LDObserve.shared) and a shared ObservabilityHookExporter used by both the native Swift ObservabilityHook and the MAUI bridge.

Refactors evaluation tracing to track in-flight spans by evaluationId (via new FIFO-evicting BoundedMap) and centralizes span start/end + attribute/event emission in the exporter; InternalObserve/ObservabilityService now expose traceClient for this path.

Improves cross-boundary value passing with LDValue↔Foundation (NSObject/NSDictionary/NSArray) conversion helpers, and extends AtomicDictionary with synchronous barrier setValue/removeValue; adds unit tests for BoundedMap and LDValue conversions.

Written by Cursor Bugbot for commit 484f8bb. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

@abelonogov-ld abelonogov-ld merged commit 915ef63 into main Feb 27, 2026
5 checks passed
@abelonogov-ld abelonogov-ld deleted the andrey/bridge branch February 27, 2026 19:21
abelonogov-ld pushed a commit that referenced this pull request Feb 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.21.0](0.20.0...0.21.0)
(2026-02-27)


### Features

* Bridging hook calls from MAUI
([#142](#142))
([915ef63](915ef63))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Low risk: this is a Release Please version bump and changelog update
with no functional code changes beyond updating published version
metadata.
> 
> **Overview**
> **Releases v0.21.0.** Updates Release Please manifest, both CocoaPods
podspec versions, and `sdkVersion` to `0.21.0`.
> 
> Adds a `0.21.0` section to `CHANGELOG.md` noting the MAUI
hook-bridging feature included in the release.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f37e817. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
abelonogov-ld added a commit that referenced this pull request Mar 4, 2026
…ift-launchdarkly-observability into andrey/exportdiffmanager

* 'andrey/exportdiffmanager' of github.com:launchdarkly/swift-launchdarkly-observability:
  chore(main): release 0.21.0 (#143)
  feat: Bridging hooks calls from MAUI (#142)
abelonogov-ld added a commit that referenced this pull request Mar 5, 2026
* main:
  chore(main): release 0.22.0 (#145)
  feat: Moves compression before buffer (Optimization) (#144)
  chore(main): release 0.21.0 (#143)
  feat: Bridging hooks calls from MAUI (#142)

# Conflicts:
#	Sources/LaunchDarklySessionReplay/BenchMark/BenchmarkExecutor.swift
#	Sources/LaunchDarklySessionReplay/ScreenCapture/TileSignatureManager.swift
#	TestApp/Sources/BenchmarkView.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants