aboutsummaryrefslogtreecommitdiffstats
path: root/yt
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-12-23 20:00:43 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-12-23 20:30:12 +0300
commit68dadf64c3c42cfaeca764dc4ffce58ccff103b1 (patch)
treecb0fab3dfa33ffc811b975724f2f69c5ba6f62ee /yt
parent65a5bf9d37a3b29eb394f560b9a09318196c40e8 (diff)
downloadydb-68dadf64c3c42cfaeca764dc4ffce58ccff103b1.tar.gz
Intermediate changes
commit_hash:1bf05c11820bce448beef0dfc66af4ae41d52841
Diffstat (limited to 'yt')
-rw-r--r--yt/yt/library/profiling/solomon/config.cpp3
-rw-r--r--yt/yt/library/profiling/solomon/config.h1
-rw-r--r--yt/yt/library/profiling/solomon/exporter.cpp3
3 files changed, 7 insertions, 0 deletions
diff --git a/yt/yt/library/profiling/solomon/config.cpp b/yt/yt/library/profiling/solomon/config.cpp
index e714548804..7b9666ab2e 100644
--- a/yt/yt/library/profiling/solomon/config.cpp
+++ b/yt/yt/library/profiling/solomon/config.cpp
@@ -45,6 +45,9 @@ void TSolomonExporterConfig::Register(TRegistrar registrar)
registrar.Parameter("convert_counters_to_delta_gauge", &TThis::ConvertCountersToDeltaGauge)
.Default(false);
+ registrar.Parameter("enable_histogram_compat", &TThis::EnableHistogramCompat)
+ .Default(false);
+
registrar.Parameter("export_summary", &TThis::ExportSummary)
.Default(false);
registrar.Parameter("export_summary_as_max", &TThis::ExportSummaryAsMax)
diff --git a/yt/yt/library/profiling/solomon/config.h b/yt/yt/library/profiling/solomon/config.h
index 42b5b4548e..0ff84c96d2 100644
--- a/yt/yt/library/profiling/solomon/config.h
+++ b/yt/yt/library/profiling/solomon/config.h
@@ -41,6 +41,7 @@ struct TSolomonExporterConfig
bool ConvertCountersToRateForSolomon;
bool RenameConvertedCounters;
bool ConvertCountersToDeltaGauge;
+ bool EnableHistogramCompat;
bool ExportSummary;
bool ExportSummaryAsMax;
diff --git a/yt/yt/library/profiling/solomon/exporter.cpp b/yt/yt/library/profiling/solomon/exporter.cpp
index aee542660a..c06a7e4ac7 100644
--- a/yt/yt/library/profiling/solomon/exporter.cpp
+++ b/yt/yt/library/profiling/solomon/exporter.cpp
@@ -636,6 +636,9 @@ void TSolomonExporter::DoHandleShard(
if (Config_->ConvertCountersToDeltaGauge && outputEncodingContext.IsSolomonPull) {
options.ConvertCountersToDeltaGauge = true;
}
+ if (Config_->EnableHistogramCompat && outputEncodingContext.IsSolomonPull) {
+ options.EnableHistogramCompat = true;
+ }
options.EnableSolomonAggregationWorkaround = outputEncodingContext.IsSolomonPull;
options.Times = readWindow;