Skip to content

feat(metrics): include environment context in commit reports - #1680

Open
fallintoplace wants to merge 3 commits into
apache:mainfrom
fallintoplace:feat/commit-report-metadata
Open

feat(metrics): include environment context in commit reports#1680
fallintoplace wants to merge 3 commits into
apache:mainfrom
fallintoplace:feat/commit-report-metadata

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Include environment context in table commit report metadata.

Why

Commit reports had an empty metadata map, so applications could not attach process or deployment context to commit metrics.

What changed

Add a concurrent-safe environment context with copy-on-read behavior and include it when building CommitReport values. The returned metadata is copied so callers cannot change the shared context accidentally.

Tests

  • go test ./metrics ./table -run TestEnvironmentContextCopiesValues -count=1
  • go test ./metrics ./table -run TestBuildCommitReport -count=1

@fallintoplace fallintoplace changed the title Include environment context in commit reports feat(metrics): include environment context in commit reports Aug 6, 2026
@fallintoplace
fallintoplace marked this pull request as ready for review August 8, 2026 14: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.

1 participant