Repository navigation
Remove the instrument metadata validator workaround - #143
Merged
Merged
Conversation
This was referenced Oct 18, 2026
ltowarek
force-pushed
the
remove-instrument-validator-workaround
branch
from
October 18, 2026 20:26
4935ac3 to
9dcd010
Compare
The pin moves from v1.28.0 to upstream main, past v1.29.0 and not yet in a release, to pick up the regex-free InstrumentMetaDataValidator (open-telemetry/opentelemetry-cpp#4715). Upstream renamed its CMake options to OTELCPP_* and fails to configure when WITH_ETW is set on a non-Windows target, so the component sets the new names and drops WITH_ETW and WITH_ABSEIL, which upstream no longer reads. Refs #141 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
opentelemetry-cpp now validates instrument names and units without std::regex, so the SDK's own translation unit fits a small task stack. test/max_length_instrument_metadata_on_small_stack stays and now checks the upstream code. Closes #141 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ltowarek
force-pushed
the
remove-instrument-validator-workaround
branch
from
October 21, 2026 19:02
9dcd010 to
2242caf
Compare
ltowarek
marked this pull request as ready for review
October 21, 2026 19:02
No example, test, or integration registers a View, so the row reported on nothing this component ships. Refs #141 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ltowarek
enabled auto-merge (squash)
October 21, 2026 20:22
This was referenced Oct 21, 2026
ltowarek
added a commit
that referenced
this pull request
Nov 6, 2026
main's instrument metadata checks (#142, #143) need opentelemetry-cpp 1.30.0, which the previous PR2 pin predates. The fork's otlp-json-no-protobuf head carries the same PR2 work on top of it. The OTLP/JSON trace, log and metric bodies match those the cJSON backend built under the old pin, apart from the SDK version string and doubles cJSON rounded: it prints 0.1 + 0.2 as "0.3", json_generator as "0.30000000000000004", which reads back as the same double. 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.
Removes the workaround from #142 now that opentelemetry-cpp validates instrument names and units without
std::regex(open-telemetry/opentelemetry-cpp#4715).Change
third_party/opentelemetry-cppfrom v1.28.0 to upstream main 7f93577b (after v1.29.0, not yet in a release), which contains #4715. Upstream renamed its CMake options toOTELCPP_*and fails to configure whenWITH_ETWis set on a non-Windows target, so the component sets the new names and dropsWITH_ETWandWITH_ABSEIL. This supersedes Dependabot Bump third_party/opentelemetry-cpp from6f65c3etoeb92442#126.src/workarounds/instrument_metadata_validator.ccand the CMake swap that replaced the SDK's translation unit.test/max_length_instrument_metadata_on_small_stack, which now checks the upstream code: a 255-character name and a 63-character unit created on a 4 KB task.Verification
With the CI image, all 11 CI matrix projects build. All 8 QEMU projects pass, including
max_length_instrument_metadata_on_small_stackat 14/14 without the workaround.Closes #141.
🤖 Generated with Claude Code