| 303 | } |
| 304 | |
| 305 | func (l *LegacyOverrides) toNewLimits() *Overrides { |
| 306 | return &Overrides{ |
| 307 | Ingestion: IngestionOverrides{ |
| 308 | RateStrategy: l.IngestionRateStrategy, |
| 309 | RateLimitBytes: l.IngestionRateLimitBytes, |
| 310 | BurstSizeBytes: l.IngestionBurstSizeBytes, |
| 311 | MaxLocalTracesPerUser: l.MaxLocalTracesPerUser, |
| 312 | MaxGlobalTracesPerUser: l.MaxGlobalTracesPerUser, |
| 313 | TenantShardSize: l.IngestionTenantShardSize, |
| 314 | MaxAttributeBytes: l.IngestionMaxAttributeBytes, |
| 315 | ArtificialDelay: l.IngestionArtificialDelay, |
| 316 | RetryInfoEnabled: l.IngestionRetryInfoEnabled, |
| 317 | }, |
| 318 | Read: ReadOverrides{ |
| 319 | MaxBytesPerTagValuesQuery: l.MaxBytesPerTagValuesQuery, |
| 320 | MaxBlocksPerTagValuesQuery: l.MaxBlocksPerTagValuesQuery, |
| 321 | MaxConditionGroupsPerTagQuery: l.MaxConditionGroupsPerTagQuery, |
| 322 | MaxSearchDuration: l.MaxSearchDuration, |
| 323 | MaxMetricsDuration: l.MaxMetricsDuration, |
| 324 | UnsafeQueryHints: l.UnsafeQueryHints, |
| 325 | LeftPadTraceIDs: l.LeftPadTraceIDs, |
| 326 | MetricsSpanOnlyFetch: l.MetricsSpanOnlyFetch, |
| 327 | }, |
| 328 | Compaction: CompactionOverrides{ |
| 329 | BlockRetention: l.BlockRetention, |
| 330 | CompactionDisabled: l.CompactionDisabled, |
| 331 | CompactionWindow: l.CompactionWindow, |
| 332 | }, |
| 333 | MetricsGenerator: MetricsGeneratorOverrides{ |
| 334 | RingSize: l.MetricsGeneratorRingSize, |
| 335 | Processors: l.MetricsGeneratorProcessors, |
| 336 | MaxActiveSeries: l.MetricsGeneratorMaxActiveSeries, |
| 337 | MaxActiveEntities: l.MetricsGeneratorMaxActiveEntities, |
| 338 | CollectionInterval: l.MetricsGeneratorCollectionInterval, |
| 339 | DisableCollection: l.MetricsGeneratorDisableCollection, |
| 340 | TraceIDLabelName: l.MetricsGeneratorTraceIDLabelName, |
| 341 | IngestionSlack: l.MetricsGeneratorIngestionSlack, |
| 342 | RemoteWriteHeaders: l.MetricsGeneratorRemoteWriteHeaders, |
| 343 | GenerateNativeHistograms: l.MetricsGeneratorGenerateNativeHistograms, |
| 344 | Forwarder: ForwarderOverrides{ |
| 345 | QueueSize: l.MetricsGeneratorForwarderQueueSize, |
| 346 | Workers: l.MetricsGeneratorForwarderWorkers, |
| 347 | }, |
| 348 | Processor: ProcessorOverrides{ |
| 349 | ServiceGraphs: ServiceGraphsOverrides{ |
| 350 | HistogramBuckets: l.MetricsGeneratorProcessorServiceGraphsHistogramBuckets, |
| 351 | Dimensions: l.MetricsGeneratorProcessorServiceGraphsDimensions, |
| 352 | PeerAttributes: l.MetricsGeneratorProcessorServiceGraphsPeerAttributes, |
| 353 | FilterPolicies: l.MetricsGeneratorProcessorServiceGraphsFilterPolicies, |
| 354 | EnableClientServerPrefix: l.MetricsGeneratorProcessorServiceGraphsEnableClientServerPrefix, |
| 355 | EnableMessagingSystemLatencyHistogram: l.MetricsGeneratorProcessorServiceGraphsEnableMessagingSystemLatencyHistogram, |
| 356 | EnableVirtualNodeLabel: l.MetricsGeneratorProcessorServiceGraphsEnableVirtualNodeLabel, |
| 357 | SpanMultiplierKey: l.MetricsGeneratorProcessorServiceGraphsSpanMultiplierKey, |
| 358 | EnableTraceStateSpanMultiplier: l.MetricsGeneratorProcessorServiceGraphsEnableTraceStateSpanMultiplier, |
| 359 | }, |
| 360 | SpanMetrics: SpanMetricsOverrides{ |
| 361 | HistogramBuckets: l.MetricsGeneratorProcessorSpanMetricsHistogramBuckets, |
| 362 | Dimensions: l.MetricsGeneratorProcessorSpanMetricsDimensions, |