Skip to content

Commit

Permalink
config rename
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Oct 21, 2024
1 parent c52cf38 commit 7360df4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion exporter/qrynexporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

- `dsn` (required): Clickhouse's dsn.
- `clustered_clickhouse` (required): true if clickhouse cluster is used
- `traces_distributed_export_v2`: use improved ingestion algorythm for traces. Data ingestion is sess performant but more evenly distributed
- `client_side_trace_processing`: use improved traces ingestion algorythm for clickhouse clusters.
Data ingestion is sess performant but more evenly distributed

# Example:
## Simple Trace Data
Expand Down
2 changes: 1 addition & 1 deletion exporter/qrynexporter/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type Config struct {
configretry.BackOffConfig `mapstructure:"retry_on_failure"`
exporterhelper.QueueSettings `mapstructure:"sending_queue"`

TracesDitstibutedExportV2 bool `mapstructure:"traces_distributed_export_v2"`
ClientSideTraceProcessing bool `mapstructure:"client_side_trace_processing"`

ClusteredClickhouse bool `mapstructure:"clustered_clickhouse"`

Expand Down
2 changes: 1 addition & 1 deletion exporter/qrynexporter/traces.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func newTracesExporter(logger *zap.Logger, cfg *Config, set *exporter.Settings)
meter: set.MeterProvider.Meter(typeStr),
db: db,
cluster: cfg.ClusteredClickhouse,
v2: cfg.ClusteredClickhouse && cfg.TracesDitstibutedExportV2,
v2: cfg.ClusteredClickhouse && cfg.ClientSideTraceProcessing,
}
if err := initMetrics(exp.meter); err != nil {
exp.logger.Error(fmt.Sprintf("failed to init metrics: %s", err.Error()))
Expand Down

0 comments on commit 7360df4

Please sign in to comment.