Repository navigation
feat(observability): audit tracing + action journeys - #19
Merged
Merged
Conversation
Wire the campus audit pattern into the admin portal: - init_audit_tracing(app) behind AUDIT_TRACING_ENABLED (campus#816): admin requests become audit spans, SDK calls land as child spans. - init_journeys(app) (campus#828): one user-initiated episode — the page load that began it, its XHRs and form posts, and the server-to-server calls they spawn — groups as one journey in the audit UI. Navigations mint; the sliding campus_action_journey cookie carries the episode; SDK calls forward the journey. Lock bump: campus-suite -> befd33b (weekly, #834 journeys), campus-api-python -> eaf4ac5 (#97 X-Journey-ID forwarding).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applies the campus observability pattern (#816 producers, #828 action journeys) to the admin portal, same shape as campus-classroom#38/#43:
init_audit_tracing(app)behindAUDIT_TRACING_ENABLED(+AUDIT_API_KEY) — admin requests become audit spans; SDK calls land as child spans.init_journeys(app)— one user-initiated episode (page load, its XHRs/form posts, spawned server-to-server calls) groups as one journey in the audit UI. Navigations mint; the slidingcampus_action_journeycookie (~10 min) carries the episode; SDK calls forward it.Lock bump: campus-suite → befd33b (current weekly, includes #834), campus-api-python → eaf4ac5 (#97 X-Journey-ID forwarding).
Local smoke: navigation mints the action cookie; a follow-up request continues the same id. Railway env (producer key + flag) lands with the deploy.