Skip to content

Commit

Permalink
Merge pull request #31449 from vespa-engine/bjorncs/content-in-access…
Browse files Browse the repository at this point in the history
…-log

Implement `requestPrefixForLoggingContent()`
  • Loading branch information
bjorncs authored Jun 5, 2024
2 parents 1cac4c7 + a44ca42 commit 96cd2f3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ public static class Properties implements ModelContext.Properties {
private final List<DataplaneToken> dataplaneTokens;
private final boolean allowUserFilters;
private final Duration endpointConnectionTtl;
private final List<String> requestPrefixForLoggingContent;

public Properties(ApplicationId applicationId,
Version modelVersion,
Expand Down Expand Up @@ -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; }
Expand Down Expand Up @@ -488,5 +490,7 @@ public List<DataplaneToken> dataplaneTokens() {
@Override public boolean allowUserFilters() { return allowUserFilters; }

@Override public Duration endpointConnectionTtl() { return endpointConnectionTtl; }

@Override public List<String> requestPrefixForLoggingContent() { return requestPrefixForLoggingContent; }
}
}

0 comments on commit 96cd2f3

Please sign in to comment.