Repository navigation
Conversation
Events get an optional root `environment` property, separate from the `@environment` machine data. The client configuration holds a default (`environment(String)`, `exceptionless.environment`, `EXCEPTIONLESS_ENVIRONMENT`), `EventBuilder.setEnvironment` overrides it per event, and the Spring Boot starter falls back to the only active profile. Names are normalized like the server does: trimmed, and unspecified when empty, over 64 characters or containing control characters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
EventBuilder.setEnvironment(null) now clears any earlier override on the builder so the configured default applies, matching the .NET and JavaScript clients. Only a non-null value that is not valid (empty or white space, over 64 characters, control characters) is an explicit override that sends the event without an environment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Names are trimmed, then must match ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$.
Anything else is unspecified and never rewritten.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds deployment environments (e.g.
production,staging) to events. They're sent as the rootenvironmentproperty, matching the .NET (#371) and JavaScript (#193) clients and the server (Exceptionless #2570).Usage
Which value wins
flowchart TD A["EventBuilder.setEnvironment(name)"] -->|null| B[Value already on the event] A -->|valid| V[Use it] A -->|invalid| U[Send unspecified] B -->|none| C["config.environment(...) in code"] C -->|not set| D["exceptionless.properties → EXCEPTIONLESS_ENVIRONMENT<br/>→ system property → Spring property"] D -->|not set| E[Spring: the single active profile]^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$. Anything else (Staging West,prod/eu,produção, empty, over 64 characters) is unspecified and never rewritten.data.@environment(machine info) is untouched.Testing
./mvnw verifyon JDK 17, 21 and 25, plus Spring Boot 4, all green locally and in CI.🤖 Generated with Claude Code