feat: Add granular telemetry signals decorator params and error classification#5963
Open
rsareddy0329 wants to merge 8 commits into
Open
feat: Add granular telemetry signals decorator params and error classification#5963rsareddy0329 wants to merge 8 commits into
rsareddy0329 wants to merge 8 commits into
Conversation
…r params and error classification X-AI-Prompt: Implement granular telemetry signals for training, evaluation, and deployment X-AI-Tool: Kiro IDE
nargokul
approved these changes
Jun 22, 2026
Comment on lines
+80
to
+81
| if "validation" in error_type.lower() or "invalid" in error_msg or "must be" in error_msg: | ||
| return "validation_error" |
Contributor
There was a problem hiding this comment.
"must be" seems vague could be anything .
Is there like a more exhaustive map of this ? Has this problem been solved elsewhere already in another library or so ?
Comment on lines
+82
to
+83
| if "accessdenied" in error_msg or "not authorized" in error_msg or "forbidden" in error_msg: | ||
| return "auth_error" |
Contributor
There was a problem hiding this comment.
How does spacing/cases sensitivity work in these cases ?
If I get "access denied" the classification would be incorrect right
| return "unknown" | ||
|
|
||
|
|
||
| def _attr_to_key(attr: str) -> str: |
Contributor
There was a problem hiding this comment.
Can we use existing snake to camel conversions ?
| func_name="BedrockModelBuilder.deploy", | ||
| telemetry_params=[ | ||
| ("model_package", TelemetryParamType.ATTR_EXISTS), | ||
| ("imported_model_kms_key_id", TelemetryParamType.KWARG_EXISTS), |
| feature=Feature.MODEL_CUSTOMIZATION, | ||
| func_name="BedrockModelBuilder.deploy", | ||
| telemetry_params=[ | ||
| ("model_package", TelemetryParamType.ATTR_EXISTS), |
Contributor
There was a problem hiding this comment.
Model Package is fine .
How is Model data being stored here ?
Comment on lines
+389
to
+390
| @_telemetry_emitter( | ||
| feature=Feature.MODEL_CUSTOMIZATION, |
Contributor
There was a problem hiding this comment.
I think a model dimension can be added to parameters as well
nargokul
requested changes
Jun 22, 2026
nargokul
left a comment
Contributor
There was a problem hiding this comment.
Can we add for pipelines as well ?
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.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.