-
Notifications
You must be signed in to change notification settings - Fork 0
feat(T7-v14): tasken L62 adoption — record_error on circular-import #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,6 +151,8 @@ impl ImportResolver { | |
| ) -> Result<ImportResult, ImportError> { | ||
| // --- Circular import check --- | ||
| if visited.iter().any(|p| p == path) { | ||
| #[cfg(feature = "otel")] | ||
| pheno_otel::metrics::record_error("tasken.import", "circular_import"); | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: The error reason string does not match the documented metric label contract for this integration ( Severity Level: Major
|
||
| return Err(ImportError::CircularImport { | ||
| path: path.to_path_buf(), | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a clean checkout that only contains Tasken (the CI workflow checks out only this repository before
cargo build --workspace), this optional path dependency still makes Cargo load/workspace/pheno-otel/Cargo.tomlduring manifest resolution; I checked withcargo metadata --no-deps, and it fails withfailed to load manifest for dependency pheno-otelbefore any feature selection or build can proceed. Please vendor/workspace the crate or depend on a published/git source so default builds do not require a sibling directory.Useful? React with 👍 / 👎.