Skip to content

chore: comment truth sweep - #33

Merged
ANcpLua merged 1 commit into
mainfrom
chore/comment-truth-sweep
Jul 3, 2026
Merged

chore: comment truth sweep#33
ANcpLua merged 1 commit into
mainfrom
chore/comment-truth-sweep

Conversation

@ANcpLua

@ANcpLua ANcpLua commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Complete-and-verified.

Sweep of src + docs for lying, dead-pattern, fix-marker, and narration comments.

Deleted

  • Templated <example><code>var apiType = typeof(X);</code></example> filler XML-doc line from 27 runtime files — documents nothing.
  • QylInterceptedAzure.StartActivity: past-bug marker "(CODE RED deps: Update dependency NLog to 5.5.1 #9: the methodName parameter was previously received and dropped)" — kept the live low-cardinality span-name constraint.
  • QylSemConvRegistry: "previous substrate built this with runtime assembly scanning ... now emits" history narration — kept the AOT-safety constraint (trim/AOT analyzers reject Assembly.GetTypes()).

Verified and kept

  • README "Temporary PackageReference consumers" claim — accurate (tools/verify-consumer-behavior.py builds consumers in tempfile.TemporaryDirectory).
  • All lane-ownership / determinism / redaction comments — live constraints.
  • Probe.cs fixture comment left byte-identical: its call-site offsets are pinned in the verified generator snapshot.

Evidence: dotnet build Qyl.OpenTelemetry.AutoInstrumentation.slnx — Build succeeded, 0 warnings, 0 errors. No dotnet test projects exist in this repo by design (Python verifiers + snapshot fixture); no runtime-behavior surface was touched — comment/XML-doc lines only.

🤖 Generated with Claude Code

… fix-markers

- Delete the templated <example><code>var apiType = typeof(X);</code></example> filler
  line from 27 runtime files (pure padding, documents nothing)
- QylInterceptedAzure: drop the CODE RED #9 past-bug marker; keep the live
  low-cardinality span-name constraint
- QylSemConvRegistry: drop the 'previous substrate' history narration; keep the
  AOT-safety constraint that motivates the generator-emitted registry

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 3, 2026 03:33
@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: a3acc6c3-9607-4caa-9ba6-e539f0ce412c

📥 Commits

Reviewing files that changed from the base of the PR and between 9f7a9ce and 8ffe8ab.

📒 Files selected for processing (27)
  • src/Qyl.OpenTelemetry.AutoInstrumentation/Internal/QylSemConvRegistry.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylAutoInstrumentationIds.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylAutoInstrumentationOptions.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylDbClientMetrics.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInstrumentationDomains.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedAspNetCore.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedAzure.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedDbCommand.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedElastic.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedEntityFrameworkCore.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedExternalLogger.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedGraphQl.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedGrpcNetClient.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedHttpWebRequest.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedKafka.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedLogger.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedMassTransit.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedMongoDb.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedNServiceBus.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedQuartz.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedRabbitMq.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedRedis.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedWcfClient.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedWcfCore.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylMetricNames.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylNServiceBusMetrics.cs
  • src/Qyl.OpenTelemetry.AutoInstrumentation/QylSemanticAttributes.cs

Cache: Disabled due to Reviews > Disable Cache setting

Knowledge base: Disabled due to data retention organization setting


📝 Walkthrough

Summary by CodeRabbit

  • Documentation
    • Cleaned up XML comments across multiple public APIs by removing outdated example snippets.
    • Updated descriptions to better explain NativeAOT/source-generator compatibility and runtime usage.
    • Clarified one telemetry note so the recorded method name is more clearly documented.

Walkthrough

Removes XML documentation <example> blocks previously appearing before class declarations across ~25 files in the AutoInstrumentation project, and rewords remaining summary/remarks documentation in the semantic conventions registry, options, semantic attributes, and Azure interceptor files. No public API or runtime logic changes.

Changes

XML documentation cleanup

Layer / File(s) Summary
Doc text rewording
QylSemConvRegistry.cs, QylAutoInstrumentationOptions.cs, QylSemanticAttributes.cs, QylInterceptedAzure.cs
Reworded documentation explaining AOT-safety of the source generator approach, updated summary/remarks for options and semantic attributes, and clarified StartActivity comments about span naming and the code.function.name tag.
Example snippet removal
QylAutoInstrumentationIds.cs, QylDbClientMetrics.cs, QylInstrumentationDomains.cs, QylInterceptedAspNetCore.cs, QylInterceptedDbCommand.cs, QylInterceptedElastic.cs, QylInterceptedEntityFrameworkCore.cs, QylInterceptedExternalLogger.cs, QylInterceptedGraphQl.cs, QylInterceptedGrpcNetClient.cs, QylInterceptedHttpWebRequest.cs, QylInterceptedKafka.cs, QylInterceptedLogger.cs, QylInterceptedMassTransit.cs, QylInterceptedMongoDb.cs, QylInterceptedNServiceBus.cs, QylInterceptedQuartz.cs, QylInterceptedRabbitMq.cs, QylInterceptedRedis.cs, QylInterceptedWcfClient.cs, QylInterceptedWcfCore.cs, QylMetricNames.cs, QylNServiceBusMetrics.cs
Removes <example> code snippets referencing typeof(...) from class-level doc comments; no code behavior changes.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Doc comments trimmed, nothing broken — 25 files, zero logic touched, straight pass.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/comment-truth-sweep
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch chore/comment-truth-sweep

Comment @coderabbitai help to get the list of available commands.

@ANcpLua
ANcpLua merged commit 5f49d03 into main Jul 3, 2026
9 of 10 checks passed
@ANcpLua
ANcpLua deleted the chore/comment-truth-sweep branch July 3, 2026 03:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes misleading or non-informative XML-doc/comment lines across the public runtime “surface” types, keeping only constraint-bearing documentation (notably AOT/trim safety and low-cardinality span naming) in this auto-instrumentation codebase.

Changes:

  • Deleted templated <example><code>var apiType = typeof(...)</code></example> XML-doc filler from many runtime-surface types.
  • Simplified/clarified the QylInterceptedAzure.StartActivity comment while preserving the low-cardinality span-name constraint.
  • Reworded QylSemConvRegistry XML-doc to remove historical narration while keeping the AOT/trim constraint explanation.

Reviewed changes

Copilot reviewed 27 out of 27 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Qyl.OpenTelemetry.AutoInstrumentation/QylSemanticAttributes.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylNServiceBusMetrics.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylMetricNames.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedWcfCore.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedWcfClient.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedRedis.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedRabbitMq.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedQuartz.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedNServiceBus.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedMongoDb.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedMassTransit.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedLogger.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedKafka.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedHttpWebRequest.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedGrpcNetClient.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedGraphQl.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedExternalLogger.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedEntityFrameworkCore.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedElastic.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedDbCommand.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedAzure.cs Removes XML-doc example filler and tightens span-name/tagging explanatory comment.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInterceptedAspNetCore.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylInstrumentationDomains.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylDbClientMetrics.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylAutoInstrumentationOptions.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/QylAutoInstrumentationIds.cs Removes non-informative XML-doc example filler.
src/Qyl.OpenTelemetry.AutoInstrumentation/Internal/QylSemConvRegistry.cs Rewords XML-doc to remove historical narration while preserving AOT/trim safety rationale.

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.

2 participants