Skip to content

Commit

Permalink
fix(ingest): respect ingest options specified by flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmalkmus committed Sep 12, 2023
1 parent 99ca589 commit 3d01e8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/ingest/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,13 @@ func ingestReader(ctx context.Context, client *axiom.Client, r io.Reader, typ ax

ingestOptions := make([]ingest.Option, 0)
if v := opts.TimestampField; v != "" {
ingest.SetTimestampField(v)
ingestOptions = append(ingestOptions, ingest.SetTimestampField(v))
}
if v := opts.TimestampFormat; v != "" {
ingest.SetTimestampFormat(v)
ingestOptions = append(ingestOptions, ingest.SetTimestampFormat(v))
}
if v := opts.Delimiter; v != "" {
ingest.SetCSVDelimiter(v)
ingestOptions = append(ingestOptions, ingest.SetCSVDelimiter(v))
}
ingestOptions = append(ingestOptions, opts.Labels...)

Expand Down

0 comments on commit 3d01e8d

Please sign in to comment.