Skip to content

Commit

Permalink
fix: extra comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nityanandagohain committed Oct 17, 2024
1 parent 364aa1d commit 0debb04
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions exporter/clickhouselogsexporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"encoding/json"
"errors"
"fmt"
"log"
"regexp"
"strconv"
"strings"
Expand Down Expand Up @@ -71,6 +72,8 @@ func newExporter(logger *zap.Logger, cfg *Config) (*clickhouseLogsExporter, erro
return nil, err
}

log.Println("HELLLOOOOOOOO")

client, err := newClickhouseClient(logger, cfg)
if err != nil {
return nil, err
Expand Down
3 changes: 2 additions & 1 deletion exporter/clickhouselogsexporter/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package clickhouselogsexporter

import (
"fmt"
"log"
"strings"

"github.com/SigNoz/signoz-otel-collector/usage"
Expand Down Expand Up @@ -48,7 +49,7 @@ var (
)

func UsageExporter(metrics []*metricdata.Metric, id uuid.UUID) (map[string]usage.Usage, error) {
fmt.Println("exporting logs usage.......")
log.Println("exporting logs usage.......")
data := map[string]usage.Usage{}
for _, metric := range metrics {
if !strings.Contains(metric.Descriptor.Name, SigNozLogsCount) && !strings.Contains(metric.Descriptor.Name, SigNozLogsBytes) {
Expand Down
5 changes: 3 additions & 2 deletions usage/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"log"
"sync"
"time"

Expand Down Expand Up @@ -76,13 +77,13 @@ func (e *UsageCollector) Start() error {

func (c *UsageCollector) Stop() error {
c.ir.Stop()
fmt.Println("sending export data")
log.Println("sending export data")
c.reader.ReadAndExport(c)
return nil
}

func (e *UsageCollector) ExportMetrics(ctx context.Context, metrics []*metricdata.Metric) error {
fmt.Println("exporting nowwww............")
log.Println("exporting nowwww............")
usages, err := e.usageParser(metrics, e.exporterID)
if err != nil {
return err
Expand Down

0 comments on commit 0debb04

Please sign in to comment.