Skip to content

Support localized stack traces in exception auto-instrumentation#8411

Open
tYoshiyuki wants to merge 2 commits intoDataDog:masterfrom
tYoshiyuki:feature/update-ja-stacktrace-support
Open

Support localized stack traces in exception auto-instrumentation#8411
tYoshiyuki wants to merge 2 commits intoDataDog:masterfrom
tYoshiyuki:feature/update-ja-stacktrace-support

Conversation

@tYoshiyuki
Copy link
Copy Markdown

Summary of changes

Adds support for localized stack trace parsing in exception auto-instrumentation.

Reason for change

Code Integration currently depends on English-oriented stack trace parsing. In localized environments such as Japanese ASP.NET MVC applications, exception stack traces can use localized frame and source location markers, which prevents frames from being parsed and normalized correctly.

Implementation details

  • added support for localized stack frame prefixes such as 場所
  • added support for localized source location markers such as 場所
  • updated StackTraceProcessor to parse localized stack trace frames
  • updated ExceptionNormalizer to normalize and hash localized stack traces consistently
  • kept existing comments where possible, with only minimal comment updates where needed

Test coverage

  • added integration tests for Japanese localized stack traces in LocalizedStackTraceTests
  • verified StackTraceProcessor.ParseFrames() parses localized frames correctly
  • verified ExceptionNormalizer.ParseFrames() filters and parses localized user frames correctly
  • verified ExceptionNormalizer.NormalizeAndHashException() ignores localized message and line number differences when generating hashes

Other details

Fixes #8408

@tYoshiyuki tYoshiyuki requested a review from a team as a code owner April 2, 2026 16:55
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.

[FEATURE]: Support Code Integration for non-English stack traces in ASP.NET MVC

1 participant