From a44ca42fa9fd0b12ca52d9d51c2c86d9fe84060a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Christian=20Seime?= Date: Wed, 5 Jun 2024 14:34:53 +0200 Subject: [PATCH] Implement `requestPrefixForLoggingContent()` --- .../yahoo/vespa/config/server/deploy/ModelContextImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java index 71171e374d20..607bb0dfb338 100644 --- a/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java +++ b/configserver/src/main/java/com/yahoo/vespa/config/server/deploy/ModelContextImpl.java @@ -345,6 +345,7 @@ public static class Properties implements ModelContext.Properties { private final List dataplaneTokens; private final boolean allowUserFilters; private final Duration endpointConnectionTtl; + private final List requestPrefixForLoggingContent; public Properties(ApplicationId applicationId, Version modelVersion, @@ -391,6 +392,7 @@ public Properties(ApplicationId applicationId, this.allowUserFilters = PermanentFlags.ALLOW_USER_FILTERS.bindTo(flagSource).with(applicationId).value(); this.endpointConnectionTtl = Duration.ofSeconds(PermanentFlags.ENDPOINT_CONNECTION_TTL.bindTo(flagSource).with(applicationId).value()); this.dataplaneTokens = dataplaneTokens; + this.requestPrefixForLoggingContent = PermanentFlags.LOG_REQUEST_CONTENT.bindTo(flagSource).with(applicationId).value(); } @Override public ModelContext.FeatureFlags featureFlags() { return featureFlags; } @@ -488,5 +490,7 @@ public List dataplaneTokens() { @Override public boolean allowUserFilters() { return allowUserFilters; } @Override public Duration endpointConnectionTtl() { return endpointConnectionTtl; } + + @Override public List requestPrefixForLoggingContent() { return requestPrefixForLoggingContent; } } }