Skip to content

feat: support exposure tracking#31

Merged
vaibhav-jain-exp merged 7 commits into
mainfrom
support-exposure-tracking
Feb 17, 2026
Merged

feat: support exposure tracking#31
vaibhav-jain-exp merged 7 commits into
mainfrom
support-exposure-tracking

Conversation

@vaibhav-jain-exp
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread core/src/main/kotlin/exposure/ExposureTracker.kt Outdated
Comment thread core/src/main/kotlin/exposure/ExposureTracker.kt
Comment thread core/src/main/kotlin/exposure/ExposureTracker.kt
@macroscopeapp
Copy link
Copy Markdown

macroscopeapp Bot commented Feb 5, 2026

Add exposure tracking with ExposureConfiguration and header-controlled evaluation in Server.evaluate and EvaluationProxy.evaluate

Introduce exposure tracking with new configuration, tracker, filter, metrics, and deprecate assignment equivalents; wire trackExposure through evaluation handlers and HTTP header toggle.

📍Where to Start

Start with the evaluate and evaluateV1 handlers that accept trackExposure in Server.kt, then follow the call into EvaluationProxy in EvaluationProxy.kt and ProjectProxy.evaluateInternal in ProjectProxy.kt.


Macroscope summarized 07da4db.

)

internal fun Exposure.canonicalize(): String {
val sb = StringBuilder().append(this.context.userId()?.trim(), " ", this.context.deviceId()?.trim(), " ")
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wondering if we should just canonicalize userId and deviceId while having full context being part of Exposure object.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Could you elaborate?

Comment thread core/src/main/kotlin/project/ProjectProxy.kt Outdated
@vaibhav-jain-exp vaibhav-jain-exp merged commit 0499861 into main Feb 17, 2026
4 of 5 checks passed
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