Skip to content

Commit

Permalink
chore(chotel): less logs please
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 4, 2023
1 parent 3af4d21 commit a3d6344
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/chotel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ func (a *App) send(ctx context.Context, now time.Time) error {
if err := db.Do(ctx, ch.Query{
Body: q,
Result: t.Result(),
Logger: zctx.From(ctx).Named("ch"),
OnResult: func(ctx context.Context, block proto.Block) error {
exported.TraceID = append(exported.TraceID, t.TraceID...)
exported.SpanID = append(exported.SpanID, t.SpanID...)
Expand Down Expand Up @@ -275,8 +274,7 @@ func (a *App) send(ctx context.Context, now time.Time) error {
return errors.Wrap(err, "export")
}
if err := db.Do(ctx, ch.Query{
Logger: zctx.From(ctx).Named("ch"),
Body: "INSERT INTO opentelemetry_span_export (trace_id, span_id, exported_at) VALUES",
Body: "INSERT INTO opentelemetry_span_export (trace_id, span_id, exported_at) VALUES",
Input: proto.Input{
{Name: "trace_id", Data: exported.TraceID},
{Name: "span_id", Data: exported.SpanID},
Expand Down

0 comments on commit a3d6344

Please sign in to comment.