Commit b3caf8d
authored
feat: enable per-context summary events (#288)
## Overview
Enables **per-context summary events** in the .NET client-side SDK, now
that the supporting InternalSdk change has been released.
- `EventProcessorBuilder.cs`: sets `PerContextSummaries = true` on the
events configuration.
- `TestService.cs` (contract tests): advertises the
`client-per-context-summaries` capability so the harness runs the
per-context summary variants.
- `LaunchDarkly.ClientSdk.csproj`: bumps `LaunchDarkly.InternalSdk`
3.6.1 → **3.7.0** (the published version that adds per-context summary
support — `EventsConfiguration.PerContextSummaries`). This is the
dependency bump the original commit deferred until the InternalSdk
release.
## Validation (against the published 3.7.0 package, not a local build)
- Builds clean against `LaunchDarkly.InternalSdk` 3.7.0 restored from
NuGet.
- Contract tests (sdk-test-harness **v2** / 2.37.0) pass fully:
- `events` suite: 353 ran, **0 failures** — including the per-context
summary variants `basic counter behavior for per context summaries` and
`context kinds for per context summaries` (gated on the
`client-per-context-summaries` capability).
- Full suite: **922 total, 14 skipped, 908 ran, 0 failures**.
Relates to SDK-2450. Depends on dotnet-sdk-internal SDK-2449 (released
as InternalSdk 3.7.0).
Left as a draft for review.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Changes analytics event shape and delivery semantics for all
client-side SDK users; dependency bump ties behavior to InternalSdk
3.7.0 event processing.
>
> **Overview**
> Turns on **per-context analytics summary events** for the .NET
client-side SDK by setting `PerContextSummaries = true` in
`EventProcessorBuilder`’s `EventsConfiguration`, so summaries are
emitted per active context (with context attached) instead of the prior
aggregation behavior.
>
> Contract test harness capability **`client-per-context-summaries`** is
advertised so v2 harness runs the per-context summary scenarios.
**`LaunchDarkly.InternalSdk`** is bumped **3.6.1 → 3.7.0**, which
supplies `EventsConfiguration.PerContextSummaries`.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
bbd03b8. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 485976e commit b3caf8d
3 files changed
Lines changed: 7 additions & 3 deletions
File tree
- pkgs/sdk/client
- contract-tests
- src
- Integrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
232 | 235 | | |
233 | 236 | | |
234 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments