fix: feature category labels in model instrumentation
What does this merge request do and why?
This MR fixes that the feature category labels in model instrumentator directly refers the Python Enum
class GitLabFeatureCategory
.
Before:
model_inferences_created{error="no",feature_category="GitLabFeatureCategory.DUO_CHAT",model_engine="anthropic",model_name="claude-2.1",streaming="no"} 1.716962744591374e+09
After:
model_inferences_created{error="no",feature_category="duo_chat",model_engine="anthropic",model_name="claude-2.1",streaming="no"}
How to set up and validate locally
- Try model call
- Access http://0.0.0.0:8082/
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed.
Edited by Shinya Maeda