Allow additional JSON log fields via SPI (#106980)

This adds a new SPI based `LoggingDataProvider` service that can be
implemented in order to add new fields to the main JSON log
This commit is contained in:
Tim Vernum 2024-04-11 12:14:00 +10:00 committed by GitHub
parent 0075c1fb1e
commit 36d5282907
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 221 additions and 1 deletions

View file

@ -391,7 +391,9 @@ module org.elasticsearch.server {
org.elasticsearch.metering,
org.elasticsearch.settings.secure,
org.elasticsearch.serverless.constants,
org.elasticsearch.serverless.apifiltering;
org.elasticsearch.serverless.apifiltering,
org.elasticsearch.internal.security;
exports org.elasticsearch.telemetry.tracing;
exports org.elasticsearch.telemetry;
exports org.elasticsearch.telemetry.metric;
@ -410,6 +412,7 @@ module org.elasticsearch.server {
uses org.elasticsearch.internal.VersionExtension;
uses org.elasticsearch.internal.BuildExtension;
uses org.elasticsearch.features.FeatureSpecification;
uses org.elasticsearch.plugins.internal.LoggingDataProvider;
provides org.elasticsearch.features.FeatureSpecification
with
@ -437,6 +440,8 @@ module org.elasticsearch.server {
org.elasticsearch.index.codec.vectors.ES813Int8FlatVectorFormat;
provides org.apache.lucene.codecs.Codec with Elasticsearch814Codec;
provides org.apache.logging.log4j.core.util.ContextDataProvider with org.elasticsearch.common.logging.DynamicContextDataProvider;
exports org.elasticsearch.cluster.routing.allocation.shards
to
org.elasticsearch.shardhealth,