Skip to content

Handle source map lookup failures gracefully - #2509

Merged
ejsmith merged 8 commits into
mainfrom
issue/source-map-failure-feedback
Aug 23, 2026
Merged

Handle source map lookup failures gracefully#2509
ejsmith merged 8 commits into
mainfrom
issue/source-map-failure-feedback

Conversation

@ejsmith

@ejsmith ejsmith commented Aug 22, 2026

Copy link
Copy Markdown
Member

Summary

  • treat expected source map download and parse failures as diagnostic outcomes instead of application errors
  • persist bounded, safe source map failure metadata on new error events
  • show a persistent stack-trace warning with failure context and a link to manage source maps

Why

Missing, unreachable, invalid, or incomplete customer source maps are common and should not create noisy Exceptionless error events. Users still need clear feedback when a stack trace could not be fully symbolicated.

Verification

  • dotnet test --project tests/Exceptionless.Tests/Exceptionless.Tests.csproj -- --filter-class Exceptionless.Tests.Services.SourceMaps.SourceMapServiceTests (57 passed)
  • npm run check (0 errors, 0 warnings)
  • npm run test:unit -- src/lib/features/events/components/stack-trace/source-map-status.svelte.test.ts (3 passed)
  • npm run build
  • focused ESLint and Prettier checks

Breaking changes

None.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 630368ff72

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Exceptionless.Core/Services/SourceMaps/SourceMapService.cs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c12d39b0dd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Exceptionless.Core/Services/SourceMaps/SourceMapService.cs Outdated
Comment thread src/Exceptionless.Core/Services/SourceMaps/SourceMapService.cs
@ejsmith
ejsmith force-pushed the issue/source-map-failure-feedback branch from c12d39b to 4888f9d Compare August 22, 2026 22:59

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4888f9d0cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Exceptionless.Core/Services/SourceMaps/SourceMapService.cs
Comment thread src/Exceptionless.Core/Services/SourceMaps/SourceMapService.cs Outdated
Comment thread src/Exceptionless.Core/Services/SourceMaps/SourceMapService.cs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: adf58a3eec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Exceptionless.Core/Services/SourceMaps/SourceMapService.cs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f681e9b5d5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Exceptionless.Core/Services/SourceMaps/SourceMapService.cs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c37971b31e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Exceptionless.Core/Services/SourceMaps/SourceMapService.cs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b7f1c79c2c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +354 to +357
if (deferredGeneratedFileUrls.Count > 0
&& existingStatus.ContainsKey("truncated")
&& existingStatus.GetValue<bool>("truncated", _serializerOptions))
failureDetailsTruncated = true;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Recompute truncation after mixed retries

When the persisted status previously omitted failures after reaching the five-detail limit, a retry that defers one listed URL but successfully checks every other URL still copies the old truncated flag here. The rebuilt warning then incorrectly claims that additional generated files were omitted even though the only remaining failure is present; derive truncation from the current pass rather than preserving it solely because any lookup deferred.

AGENTS.md reference: AGENTS.md:L72-L74

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown

Code Coverage

Package Line Rate Branch Rate Complexity Health
Exceptionless.Insulation 37% 35% 286
Exceptionless.Core 76% 67% 10263
Exceptionless.Web 85% 69% 7903
Exceptionless.AppHost 38% 41% 147
Summary 78% (25247 / 32249) 67% (11870 / 17628) 18599

@ejsmith
ejsmith merged commit 9fa81b4 into main Aug 23, 2026
12 checks passed
@ejsmith
ejsmith deleted the issue/source-map-failure-feedback branch August 23, 2026 04:16
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