Skip to content

feat(unity): add telemetry to Unity SDK - #39

Merged
vahidlazio merged 7 commits into
mainfrom
nicklasl/add-unity-telemetry
Sep 4, 2026
Merged

feat(unity): add telemetry to Unity SDK#39
vahidlazio merged 7 commits into
mainfrom
nicklasl/add-unity-telemetry

Conversation

@nicklasl

@nicklasl nicklasl commented Mar 31, 2026

Copy link
Copy Markdown
Member

Summary

  • Add opt-out telemetry for Unity resolve latency and evaluation outcomes
  • Upload JSON directly to the telemetry endpoint, matching confidence-sdk-js
  • Bound the shared buffer at 100 traces and flush on capacity, a jittered 30-second cadence, and application lifecycle events
  • Keep uploads single-flight and best-effort, with bounded exponential retry
  • Use canonical telemetry enum values and structured evaluation results

Test plan

  • Build with warnings as errors
  • Focused Unity telemetry and endpoint tests (17 passed)
  • Unity Editor build (Unity is unavailable locally)

Track resolve latency and evaluation outcomes, sent via
X-CONFIDENCE-TELEMETRY header on resolve requests. Manual
protobuf encoding, all call sites guarded with try/catch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread unity-sdk/Runtime/Providers/ConfidenceApiClient.cs Outdated
@vahidlazio
vahidlazio marked this pull request as ready for review September 4, 2026 09:33
@vahidlazio
vahidlazio merged commit 0aca7c3 into main Sep 4, 2026
2 checks passed
@nicklasl
nicklasl deleted the nicklasl/add-unity-telemetry branch September 4, 2026 18:30
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