Skip to content

Commit

Permalink
feat: support traces_input_dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Cluas committed Oct 14, 2024
1 parent b17cde3 commit 174fb7c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions exporter/qrynexporter/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import (

var (
tracesInputSQL = func(clustered bool) string {
return `INSERT INTO traces_input (
dist := ""
if clustered {
dist = "_dist"
}
return fmt.Sprintf(`INSERT INTO traces_input%s (
trace_id,
span_id,
parent_id,
Expand All @@ -31,7 +35,7 @@ var (
service_name,
payload_type,
payload,
tags)`
tags)`, dist)
}
samplesSQL = func(clustered bool) string {
dist := ""
Expand Down

0 comments on commit 174fb7c

Please sign in to comment.