You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(audience): expose SDK state and add BaseUrl override
Adds six public diagnostic getters on ImmutableAudience:
- Initialized: true between Init and Shutdown.
- CurrentConsent: live consent level.
- UserId: last Identify value; null below Full consent.
- AnonymousId: anonymous, persistent ID.
- SessionId: current session id; rotates on Init / Reset / timeout.
- QueueSize: number of unsent events (memory + disk).
Each getter is safe from any thread and returns a safe default
when the SDK cannot answer. EventQueue gains an internal
InMemoryCount property so QueueSize can sum without locking.
Adds optional AudienceConfig.BaseUrl override (matches Web/Pixel
SDK pattern; addresses #709 review). Null preserves the key-prefix
derivation; integrations needing a different backend pass the URL
directly.
Tests cover diagnostics lifecycle and BaseUrl resolution.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments