Skip to content

[chain-pr 5/10] DatadogLogs: typed-bus migration#2931

Draft
maxep wants to merge 3 commits into
maxep/message-bus-subscription--chain-3from
maxep/message-bus-subscription--chain-5
Draft

[chain-pr 5/10] DatadogLogs: typed-bus migration#2931
maxep wants to merge 3 commits into
maxep/message-bus-subscription--chain-3from
maxep/message-bus-subscription--chain-5

Conversation

@maxep

@maxep maxep commented May 19, 2026

Copy link
Copy Markdown
Member

This PR is part of a chain split from #0 maxep/message-bus-subscription by chain-pr.

Changes

Migrates LogMessageReceiver and WebViewLogReceiver to BusMessageReceiver, wires subscriptions in Logs.enable, threads MessageBus through RemoteLogger for RUM error forwarding, and switches global attribute change notifications to the typed bus. Updates tests and mocks.

Refactoring rationale

Logs receivers previously consumed FeatureMessage via switch/case. They now conform to BusMessageReceiver with their concrete message type, eliminating the runtime cast. RemoteLogger now uses MessageBus directly for cross-feature RUM error emission instead of FeatureScope.send.


Draft — pending author review. Merge in order unless marked parallel.

@datadog-official

datadog-official Bot commented May 19, 2026

Copy link
Copy Markdown

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/dd-sdk-ios | SPI Docs Build   View in Datadog   GitLab

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 935cf5e | Docs | Datadog PR Page | Give us feedback!

@maxep maxep force-pushed the maxep/message-bus-subscription--chain-3 branch from ed91047 to 2469c47 Compare May 19, 2026 17:55
@maxep maxep force-pushed the maxep/message-bus-subscription--chain-5 branch from 21314b1 to ec7dc67 Compare May 19, 2026 17:55
@maxep maxep force-pushed the maxep/message-bus-subscription--chain-3 branch from 2469c47 to 588136c Compare May 19, 2026 18:10
@maxep maxep force-pushed the maxep/message-bus-subscription--chain-5 branch from ec7dc67 to ba7bf22 Compare May 19, 2026 18:10
@maxep maxep force-pushed the maxep/message-bus-subscription--chain-3 branch from 588136c to c482945 Compare May 20, 2026 08:54
@maxep maxep force-pushed the maxep/message-bus-subscription--chain-5 branch from ba7bf22 to a00efe9 Compare May 20, 2026 08:54
@maxep maxep force-pushed the maxep/message-bus-subscription--chain-3 branch from c482945 to c2710e2 Compare June 15, 2026 13:03
@maxep maxep force-pushed the maxep/message-bus-subscription--chain-5 branch from a00efe9 to 935cf5e Compare June 15, 2026 13:05
@maxep maxep force-pushed the maxep/message-bus-subscription--chain-3 branch 2 times, most recently from 12483fe to 39dd976 Compare June 16, 2026 15:33
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.

1 participant