Skip to content

fix: re-pin rius-semconv to v1.10.0 - #247

Merged
PabloPardoGarcia merged 2 commits into
mainfrom
fix/semconv-1.10.0
Oct 27, 2026
Merged

PabloPardoGarcia merged 2 commits into
mainfrom
fix/semconv-1.10.0

Conversation

@PabloPardoGarcia

Copy link
Copy Markdown
Member

Re-pins the vendored rius-semconv module from v1.9.2 to v1.10.0, which references the upstream Agent Skill keys (rius-semconv#104, upstream semantic-conventions-genai#498).

Behaviour change, driven by the registry:

  • gen_ai.skill.source.uri and gen_ai.skill.description join CONTENT_ATTRIBUTES, so with content capture off they are now masked on every span, including third-party ones (Google ADK, Agno, Strands record them). Upstream marks both sensitive: the URI can carry a local path or credentials, and the description is prose the skill's author wrote.
  • gen_ai.skill.name joins PENDING_IDENTITY_ATTRIBUTES, so it may appear on a pending snapshot.
  • New constants GEN_AI_SKILL_NAME and GEN_AI_SKILL_SOURCE_URI. rius-semconv's parity check stops reporting this SDK as behind.

Checks

pytest (2871 passed), ruff check, ruff format --check, mypy and scripts/sync-semconv.sh --check all exit 0.

@PabloPardoGarcia

Copy link
Copy Markdown
Member Author

Review: no blocking issues.

Verified:

  • src/rius/_semconv_generated.py matches rius-semconv out/python/_semconv_generated.py at v1.10.0 (7342870) byte for byte, apart from the two-line vendoring header.
  • The behaviour claims hold through the real export path. I ran a throwaway test (since deleted): init(span_exporter=InMemorySpanExporter()), then a span on a foreign scope (google.adk) carrying gen_ai.skill.name, gen_ai.skill.source.uri and gen_ai.skill.description.
    • capture_content=False: both content keys are dropped and gen_ai.skill.name survives.
    • capture_content=True: all three are kept.
    • mask=: the mask runs on the two content keys and never on the name.
    • With the v1.9.2 file swapped back in, the "off" and "mask" cases fail, so this PR is what causes the change. Neither key was caught before by a prefix or suffix rule.
  • pending.py reads PENDING_IDENTITY_ATTRIBUTES directly, so the pending-snapshot claim holds.
  • fix: is the right type. It changes what gets masked on export, and it belongs in the 1.5.4 patch.

🟡 Suggestion (non-blocking): pin it in the suite. No existing test mentions the skill keys, so a later registry edit could drop them without any test failing. Adding two lines to the existing lists in tests/test_masking.py would close that: put gen_ai.skill.source.uri and gen_ai.skill.description in THIRD_PARTY_CONTENT_KEYS, and gen_ai.skill.name in THIRD_PARTY_KEYS_THAT_SURVIVE. Those lists already run through _exported_attributes, which is the real export path. A follow-up PR is fine.

@PabloPardoGarcia

Copy link
Copy Markdown
Member Author

Added the suggested permanent coverage in 389573f: gen_ai.skill.source.uri and gen_ai.skill.description in THIRD_PARTY_CONTENT_KEYS, gen_ai.skill.name in THIRD_PARTY_KEYS_THAT_SURVIVE.

@PabloPardoGarcia
PabloPardoGarcia merged commit 57b8f87 into main Oct 27, 2026
14 checks passed
@PabloPardoGarcia
PabloPardoGarcia deleted the fix/semconv-1.10.0 branch October 27, 2026 10:07
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