Stack Trace Formatter

[2024/09/04 09:04:12.208 -07:00] [WARN] [process.go:275] ["a warning occurred in Manager"] [namespace=production] [process=sampleProcess1] [error="[SYSTEM:ErrSchemaAPIError]Schema manager API error%!(EXTRA string=Failed to fetch the latest schema from the registry): [SYSTEM:ErrSchemaAPIError]Unexpected HTTP status code from schema registry: 404"] [errorVerbose="[SYSTEM:ErrSchemaAPIError]Schema manager API error%!(EXTRA string=Failed to fetch the latest schema from the registry): [SYSTEM:ErrSchemaAPIError]Unexpected HTTP status code from schema registry: 404
github.com/example/errors.AddStack
	github.com/example/errors@v0.11.5-0.20221009092201-b66cddb77c32/errors.go:174
github.com/example/errors.(*Error).GenWithStackByArgs
	github.com/example/errors@v0.11.5-0.20221009092201-b66cddb77c32/normalize.go:164
github.com/exampleproject/pkg/errors.WrapError
	github.com/exampleproject/pkg/errors/helper.go:34
github.com/exampleproject/pkg/encoder/avro.(*schemaManager).Lookup
	github.com/exampleproject/pkg/encoder/avro/schema_registry.go:248
github.com/exampleproject/pkg/encoder/avro.(*BatchEncoder).createLogMessage
	github.com/exampleproject/pkg/encoder/avro/avro.go:167
github.com/exampleproject/pkg/encoder/avro.(*BatchEncoder).EncodeCheckpointEvent
	github.com/exampleproject/pkg/encoder/avro/avro.go:154
github.com/exampleproject/service/sink.(*ServiceSink).EncodeCheckpointForAvro
	github.com/exampleproject/service/sink/avro_sink.go:185
github.com/exampleproject/service/sink.(*ServiceSink).WriteCheckpointTimestamp
	github.com/exampleproject/service/sink/avro_sink.go:158
github.com/exampleproject/manager.(*sinkManagerImpl).writeCheckpointTimestamp.func1
	github.com/exampleproject/manager/sink_manager.go:235
github.com/exampleproject/manager.(*sinkManagerImpl).retrySinkAction
	github.com/exampleproject/manager/sink_manager.go:168
github.com/exampleproject/manager.(*sinkManagerImpl).observedRetrySinkAction.func1
	github.com/exampleproject/manager/sink_manager.go:203
runtime.goexit
	runtime/asm_arm64.s:1197"]