Skip to content

The only tool you need to know what is happening and how to fix it.

Update sourcemap_resolver.go

dduxc9df198c4d9c
diff --git a/backend/app/services/sourcemap_resolver.go b/backend/app/services/sourcemap_resolver.go
index 372c31f3..91a6fbd8 100644
--- a/backend/app/services/sourcemap_resolver.go
+++ b/backend/app/services/sourcemap_resolver.go
@@ -4,7 +4,6 @@ import (
"container/list"
"context"
"fmt"
- "os"
"path/filepath"
"regexp"
"strconv"
@@ -97,15 +96,6 @@ func ResolveStackTrace(ctx context.Context, projectId uuid.UUID, stackTrace stri
return stackTrace
}
- // Source-map resolution is opt-in. A 20+ MB minified map parses into
- // ~100-200 MB of in-memory state; under concurrent load this was pushing
- // a 1 GB EC2 instance over the OOM line. Default: off. Flip on with
- // TRACEWAY_SOURCEMAP_RESOLUTION=on in the environment when the host has
- // enough RAM.
- if os.Getenv("TRACEWAY_SOURCEMAP_RESOLUTION") != "on" {
- return stackTrace
- }
-
// Build lookup: basename of source map's file_name (without .map) -> source map
// Also keep a map of file_name -> storage_key for direct lookup
smByBasename := make(map[string]*models.SourceMap)