Repository navigation
Test a base URL with a path prefix and non-ASCII event text - #22
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Self-review rubric (performed inline in the same session; not an independent review):
Observation (judgment, non-blocking):
Verdict: tests-only, CI green, no do-not-auto-merge path touched. This comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
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.
Summary
Stage B (unit-test expansion) cycle: two characterization tests are added for wire-format behavior that was previously unexercised. No production code is changed.
test_a_base_url_with_a_path_keeps_it_in_front_of_the_endpoint— a base URL under a path prefix (a trace server behind a reverse proxy,…/trace//) is posted to/trace/api/metrics: the prefix is kept and every trailing slash is stripped. This locks in the README'sPOST {base_url}/api/metricsfor more than a bare host.test_non_ascii_names_and_tags_arrive_intact_as_utf8_json— a non-ASCII event name and tag values (Latin-1 accents and an astral-plane emoji) decode on the server to exactly what was reported, sent with the exactContent-Type: application/json; charset=utf-8header.Test plan
python3 -m unittestlocally —Ran 64 tests,OKBuild—test (3.8),test (3.10),test (3.12)Issues
No tracking issue — gap found during triage. #16 is skipped: it remains blocked on an owner decision about the README's "
tagsalways holds at leastversion" promise at theMAX_TAGScap and on a coordinated change in trace-client-java (see the comment on #16).trace-client-java
No Java-visible behavior changed (tests only).
This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson