Skip to content

Sanitize skill names in injection metrics - #34601

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0ed633fbd468739acc30193b566d830e20bc7860
Jul 21, 2026
Merged

Sanitize skill names in injection metrics#34601
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0ed633fbd468739acc30193b566d830e20bc7860

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 21, 2026

Copy link
Copy Markdown

Sanitize skill names in injection metrics

Why

Skill names may contain characters that are not valid in metric tag values.

What changed

Pass skill names through sanitize_metric_tag_value before using them as the
skill tag on codex.skill.injected counters for both explicit and implicit
skill invocations.

## Why

Skill names may contain characters that are not valid in metric tag values.

## What changed

Pass skill names through `sanitize_metric_tag_value` before using them as the
`skill` tag on `codex.skill.injected` counters for both explicit and implicit
skill invocations.

GitOrigin-RevId: 0ed633fbd468739acc30193b566d830e20bc7860
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/0ed633fbd468739acc30193b566d830e20bc7860 branch from 5a7f49f to 6c00dc0 Compare July 21, 2026 19:26
@copyberry
copyberry Bot merged commit 6c00dc0 into main Jul 21, 2026
21 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/0ed633fbd468739acc30193b566d830e20bc7860 branch July 21, 2026 19:27
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants