Skip to content

Let the diagnostic rule and code fields added in 0.261.478 reach telemetry (0.261.480) - #1975

Merged
Paul Lizer (paullizer) merged 1 commit into
microsoft:Developmentfrom
paullizer:claude/diagnostic-keys-reach-telemetry
Nov 22, 2026
Merged

Paul Lizer (paullizer) merged 1 commit into
microsoft:Developmentfrom
paullizer:claude/diagnostic-keys-reach-telemetry

Conversation

@paullizer

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1973. Version 0.261.480.

0.261.478 added closed-code fields to several failure logs so a run would say which check stopped a step. In the next run those fields did not appear in telemetry.

  • The fields are kept. The telemetry boundary keeps a text value only for allow-listed keys. failure_rule, execution_rule, calculation_cause, error_code, limit_source and limit_status were not on the list, so they were recorded as lengths. They are now code keys: a value is kept only when it is a lower-case snake token.
  • A refused table selection names the plugin function. operation logged the worker closure the functions run their file work in, not the function.
  • A failed accessibility report says where it raised. "Document inspection action failed" logged the class name only; it now logs the application frames as well. The message is never read.

Why the earlier tests missed it

They replaced log_event with a recorder and asserted the dictionary passed in. The new test sends the fields through the real _build_logger_extra and asserts that free text under the same keys is dropped.

Testing

  • test_orchestration_failure_telemetry.py, test_orchestration_relational_results.py, test_privacy_logging_telemetry_audit.py: pass.
  • test_appinsights_streaming_context.py: 8 failures, the same on the commit before this change.
  • Not run against a deployed application.

Details: docs/explanation/fixes/DIAGNOSTIC_RULE_FIELDS_TELEMETRY_FIX.md.

🤖 Generated with Claude Code

…metry (0.261.480)

The telemetry boundary keeps a text value only for allow-listed keys, and the
keys added in 0.261.478 (failure_rule, execution_rule, calculation_cause,
error_code, limit_source, limit_status) were not on the list, so they were
logged and dropped. The tabular plugin's operation named the worker closure
instead of the plugin function, and a failed accessibility report logged its
class name only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@paullizer
Paul Lizer (paullizer) merged commit cc5008f into microsoft:Development Nov 22, 2026
14 checks passed
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