stacktrace

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sanitize

func Sanitize(raw []byte, importPrefixes ...string) string

Sanitize processes a raw stack trace to strip sensitive information before sending it to logging infrastructure. This removes absolute file paths, function arguments, and normalizes goroutine numbers so that equivalent stack traces always produce the same string.

importPrefixes are module import path prefixes (e.g. "github.com/infracost/cli/") that will be stripped from file references to keep the output concise.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL