From 7273e38673d4d55a6d361d0cf171d7ca90e3c9f8 Mon Sep 17 00:00:00 2001 From: varnit goyal Date: Mon, 14 Oct 2024 13:03:03 +0530 Subject: [PATCH 1/3] TP-5555 | clean up --- pkg/db/elastic.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/db/elastic.go b/pkg/db/elastic.go index c34fd9c..0066d90 100644 --- a/pkg/db/elastic.go +++ b/pkg/db/elastic.go @@ -16,7 +16,8 @@ type ElasticSearchClient struct { func NewElasticClient(elasticConfig configs.ElasticConfig) (*ElasticSearchClient, error) { cfg := elasticsearch8.Config{ Addresses: elasticConfig.Addresses, - APIKey: elasticConfig.APIKey, + Username: elasticConfig.Username, + Password: elasticConfig.Password, Transport: &http.Transport{ TLSClientConfig: &tls.Config{ InsecureSkipVerify: true, From 86d98214ec3145574aa6f330458e13054a2e0d06 Mon Sep 17 00:00:00 2001 From: varnit goyal Date: Mon, 14 Oct 2024 14:50:40 +0530 Subject: [PATCH 2/3] TP-5555 | elastic fix --- configs/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/application.yml b/configs/application.yml index edc83d9..112e749 100644 --- a/configs/application.yml +++ b/configs/application.yml @@ -68,7 +68,7 @@ DocumentService: generate_token: DOCUMENT_SERVICE_MOCK_GENERATE_TOKEN elastic: - addresses: ELASTIC_ADDRESS + addresses: ELASTIC_ADDRESSES username: ELASTIC_USERNAME password: ELASTIC_PASSWORD index: ELASTIC_INDEX From 9770420aa64b286b14e409772a9821a7f6bdd27a Mon Sep 17 00:00:00 2001 From: varnit goyal Date: Mon, 14 Oct 2024 16:54:57 +0530 Subject: [PATCH 3/3] TP-5555 | md5 inclusion and frames log --- service/ErrorProcessor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/ErrorProcessor.go b/service/ErrorProcessor.go index 95e0e7b..0733e92 100644 --- a/service/ErrorProcessor.go +++ b/service/ErrorProcessor.go @@ -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{