[processor/transform] Add support for semconv 1.40.0, 1.39.0 and 1.38.0 in the set_semconv_span_name() function#45911
Merged
atoulme merged 41 commits intoApr 1, 2026
Conversation
Member
Author
|
@lmolkova can you please have a look? I see you were a stakeholder of the semconv changes that impact
|
iblancasa
approved these changes
Feb 6, 2026
Co-authored-by: Israel Blancas <iblancasa@gmail.com>
3 tasks
edmocosta
reviewed
Feb 11, 2026
set_semconv_span_name() functionset_semconv_span_name() function
…name logic for semconv 1.39+ Introduce version-aware RPC span name derivation in the set_semconv_span_name function. For semconv >= 1.39.0, the new rpc.system.name attribute takes priority over the deprecated rpc.system; for earlier versions the existing priority is preserved. Version validation is now range-based (1.37.0–1.40.0) using the Masterminds/semver library, replacing the previous string allowlist. The semconv version string is parsed once at function-creation time and propagated as a typed *semver.Version through the call chain. Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
# Conflicts: # processor/transformprocessor/go.mod
…etsemconvspanname_1.39 # Conflicts: # processor/transformprocessor/go.mod
…etsemconvspanname_1.39 # Conflicts: # processor/transformprocessor/go.mod # processor/transformprocessor/go.sum
…etsemconvspanname_1.39 # Conflicts: # processor/transformprocessor/go.mod
# Conflicts: # processor/transformprocessor/go.mod
edmocosta
reviewed
Mar 30, 2026
Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
# Conflicts: # processor/transformprocessor/go.mod
# Conflicts: # processor/transformprocessor/go.mod
…e argument parsing Extract common validation logic into parseSemconvSpanNameArguments helper, reused by both createSetSemconvSpanNameFunction and createSetSemconvSpanNameFunctionLegacy. Assisted-by: Claude Sonnet 4.6
edmocosta
approved these changes
Apr 1, 2026
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.
Description
Add support for semconv 1.40.0, 1.39.0 and 1.38.0 in the
set_semconv_span_name()function of the Transform Processor.Noteworthy functional change:
rpc.system.nametakes precedence over the deprecatedrpc.systemNoteworthy technical change:
Link to tracking issue
Fixes
Testing
Tests added:
set_semconv_span_name()function paramsemconvVersionwith new supported valuesrpc.system.nameDocumentation
README.md updated