@@ -128,6 +128,8 @@ func projectConfigToCreateParams(id string, config *datastore.ProjectConfig) rep
128128 cb := config .GetCircuitBreakerConfig ()
129129 ssl := config .GetSSLConfig ()
130130
131+ requestIDHeader := string (config .GetRequestIDHeader ())
132+
131133 return repo.CreateProjectConfigurationParams {
132134 ID : common .StringToPgTextNullable (id ),
133135 SearchPolicy : common .StringToPgTextNullable (config .SearchPolicy ),
@@ -140,6 +142,7 @@ func projectConfigToCreateParams(id string, config *datastore.ProjectConfig) rep
140142 StrategyRetryCount : pgtype.Int4 {Int32 : int32 (sc .RetryCount ), Valid : true },
141143 SignatureHeader : common .StringToPgTextNullable (string (sgc .Header )),
142144 SignatureVersions : signatureVersionsToJSON (sgc .Versions ),
145+ RequestIDHeader : common .StringToPgTextNullable (requestIDHeader ),
143146 DisableEndpoint : pgtype.Bool {Bool : config .DisableEndpoint , Valid : true },
144147 MetaEventsEnabled : pgtype.Bool {Bool : me .IsEnabled , Valid : true },
145148 MetaEventsType : common .StringToPgTextNullable (string (me .Type )),
@@ -163,6 +166,7 @@ func projectConfigToUpdateParams(id string, config *datastore.ProjectConfig) rep
163166 rlc := config .GetRateLimitConfig ()
164167 sc := config .GetStrategyConfig ()
165168 sgc := config .GetSignatureConfig ()
169+ requestIDHeader := string (config .GetRequestIDHeader ())
166170 me := config .GetMetaEventConfig ()
167171 cb := config .GetCircuitBreakerConfig ()
168172 ssl := config .GetSSLConfig ()
@@ -178,6 +182,7 @@ func projectConfigToUpdateParams(id string, config *datastore.ProjectConfig) rep
178182 StrategyRetryCount : pgtype.Int4 {Int32 : int32 (sc .RetryCount ), Valid : true },
179183 SignatureHeader : common .StringToPgTextNullable (string (sgc .Header )),
180184 SignatureVersions : signatureVersionsToJSON (sgc .Versions ),
185+ RequestIDHeader : common .StringToPgTextNullable (requestIDHeader ),
181186 DisableEndpoint : pgtype.Bool {Bool : config .DisableEndpoint , Valid : true },
182187 MetaEventsEnabled : pgtype.Bool {Bool : me .IsEnabled , Valid : true },
183188 MetaEventsType : common .StringToPgTextNullable (string (me .Type )),
@@ -205,29 +210,29 @@ func rowToProject(row interface{}) (*datastore.Project, error) {
205210 retainedEvents pgtype.Int4
206211 createdAt , updatedAt , deletedAt pgtype.Timestamptz
207212 // Config fields
208- searchPolicy pgtype.Text
209- strategyType , signatureHeader string
210- signatureVersions []byte
211- maxPayloadReadSize int32
212- multipleEndpointSubscriptions bool
213- replayAttacks bool
214- ratelimitCount int32
215- ratelimitDuration int32
216- strategyDuration int32
217- strategyRetryCount int32
218- disableEndpoint bool
219- sslEnforceSecureEndpoints pgtype.Bool
220- metaEventsEnabled bool
221- metaEventsType , metaEventsEventType pgtype.Text
222- metaEventsUrl , metaEventsSecret pgtype.Text
223- metaEventsPubSub []byte
224- cbSampleRate int32
225- cbErrorTimeout int32
226- cbFailureThreshold int32
227- cbSuccessThreshold int32
228- cbObservabilityWindow int32
229- cbMinimumRequestCount int32
230- cbConsecutiveFailureThreshold int32
213+ searchPolicy pgtype.Text
214+ strategyType , signatureHeader , requestIDHeader string
215+ signatureVersions []byte
216+ maxPayloadReadSize int32
217+ multipleEndpointSubscriptions bool
218+ replayAttacks bool
219+ ratelimitCount int32
220+ ratelimitDuration int32
221+ strategyDuration int32
222+ strategyRetryCount int32
223+ disableEndpoint bool
224+ sslEnforceSecureEndpoints pgtype.Bool
225+ metaEventsEnabled bool
226+ metaEventsType , metaEventsEventType pgtype.Text
227+ metaEventsUrl , metaEventsSecret pgtype.Text
228+ metaEventsPubSub []byte
229+ cbSampleRate int32
230+ cbErrorTimeout int32
231+ cbFailureThreshold int32
232+ cbSuccessThreshold int32
233+ cbObservabilityWindow int32
234+ cbMinimumRequestCount int32
235+ cbConsecutiveFailureThreshold int32
231236 )
232237
233238 switch r := row .(type ) {
@@ -248,6 +253,7 @@ func rowToProject(row interface{}) (*datastore.Project, error) {
248253 strategyRetryCount = r .ConfigStrategyRetryCount
249254 signatureHeader = r .ConfigSignatureHeader
250255 signatureVersions = r .ConfigSignatureVersions
256+ requestIDHeader = r .ConfigRequestIDHeader
251257 disableEndpoint = r .ConfigDisableEndpoint
252258 sslEnforceSecureEndpoints = r .ConfigSslEnforceSecureEndpoints
253259 metaEventsEnabled = r .ConfigMetaEventsEnabled
@@ -280,6 +286,7 @@ func rowToProject(row interface{}) (*datastore.Project, error) {
280286 strategyRetryCount = r .ConfigStrategyRetryCount
281287 signatureHeader = r .ConfigSignatureHeader
282288 signatureVersions = r .ConfigSignatureVersions
289+ requestIDHeader = r .ConfigRequestIDHeader
283290 disableEndpoint = r .ConfigDisableEndpoint
284291 sslEnforceSecureEndpoints = r .ConfigSslEnforceSecureEndpoints
285292 metaEventsEnabled = r .ConfigMetaEventsEnabled
@@ -333,6 +340,7 @@ func rowToProject(row interface{}) (*datastore.Project, error) {
333340 Header : config .SignatureHeaderProvider (signatureHeader ),
334341 Versions : jsonToSignatureVersions (signatureVersions ),
335342 },
343+ RequestIDHeader : config .RequestIDHeaderProvider (requestIDHeader ),
336344 SSL : & datastore.SSLConfiguration {
337345 EnforceSecureEndpoints : sslEnforceSecureEndpoints .Bool ,
338346 },
0 commit comments