Merge pull request #14 from navi-ppl/TP-5555/clean-up

Tp 5555/clean up
This commit is contained in:
Aman Singh
2024-10-14 17:02:38 +05:30
committed by GitHub

View File

@@ -118,6 +118,7 @@ func (ep *ErrorProcessor) ProcessError(error []byte) {
Cmd: "bins/source-map",
Args: []string{string(frames)},
}
fmt.Printf("frames %v", frames)
output, err := symbolicator.SymbolicatorClient(command)
if err != nil {
@@ -125,7 +126,7 @@ func (ep *ErrorProcessor) ProcessError(error []byte) {
return
}
//make md5 hash of error
hash := encoder.Md5Encode(string(error))
hash := encoder.Md5Encode(string(frames))
//creating es document
println("processed document successfully saving it to elasticsearch", hash)
errorDocument := &es.ErrorDocument{