Skip to content

fix: restore local listing and Aspire tracing - #1505

Merged
BenjaminMichaelis merged 7 commits into
mainfrom
fix/listing-source-filename-compat
Oct 14, 2026
Merged

BenjaminMichaelis merged 7 commits into
mainfrom
fix/listing-source-filename-compat

Conversation

@BenjaminMichaelis

@BenjaminMichaelis BenjaminMichaelis commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Recognize BookContent source names such as Listing01.01.HelloWorldInC#.cs when serving listing source; prefer C# files while retaining legacy filenames.
  • Prefer Aspire's OTLP exporter when OTEL_EXPORTER_OTLP_ENDPOINT is configured, and use Azure Monitor only when OTLP is not configured. This keeps local Aspire traces visible even when an App Insights connection string is also configured.

Validation

  • Web test suite passed (155 tests).
  • Local Web and Try.NET resources were healthy. Browser traceparent, Web listing API span, and Try.NET /commands spans shared trace ID b04906a9bfd84ca0839f6d807e82b107.

@BenjaminMichaelis BenjaminMichaelis changed the title fix(listings): support BookContent filenames fix: restore local listing and Aspire tracing Oct 14, 2026
The 9.0.21 pin caused NU1605 (Pkcs 10.0.12 -> 9.0.21 downgrade via Cryptography.Xml) when 'dotnet ef migrations bundle' restored for linux-x64, failing the Docker build.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The listing and telemetry changes are coherent, deterministic, and adequately validated.

0 open findings

What changed in this PR

Restores BookContent listing discovery and ensures Aspire OTLP tracing takes precedence over Azure Monitor.

Changes:

  • Supports legacy and BookContent listing filenames, preferring C# sources.
  • Prioritizes OTLP export when configured.
  • Adds regression coverage, cryptography dependencies, and TUnit guidance.
File Description
ListingSourceCodeService.cs Expands filename matching and deterministic source selection.
Program.cs Prioritizes OTLP over Azure Monitor.
EssentialCSharp.Web.csproj Adds the PKCS dependency.
ListingSourceCodeServiceTests.cs Tests BookContent filename discovery.
Listing99.01.Sample.cs Provides BookContent-style test data.
EssentialCSharp.Web.Tests.csproj Adds the XML cryptography dependency.
Directory.Packages.props Centrally versions cryptography packages.
.claude/​skills/​tunit/​SKILL.md Adds TUnit guidance for Claude agents.
.agents/​skills/​tunit/​SKILL.md Adds TUnit guidance for general agents.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@BenjaminMichaelis
BenjaminMichaelis merged commit 8ebe7ab into main Oct 14, 2026
15 checks passed
@BenjaminMichaelis
BenjaminMichaelis deleted the fix/listing-source-filename-compat branch October 14, 2026 07:23
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