Skip to content

Commit

Permalink
MAINT: backfill documentation in json description for otel_traces (op…
Browse files Browse the repository at this point in the history
…ensearch-project#4724)

* MAINT: backfill documentation in json property description for otel_traces

Signed-off-by: George Chen <[email protected]>
Signed-off-by: Krishna Kondaka <[email protected]>
  • Loading branch information
chenqi0805 authored and Krishna Kondaka committed Aug 14, 2024
1 parent 04ac68a commit 4a81da9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package org.opensearch.dataprepper.plugins.processor.oteltrace;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;

import java.time.Duration;

Expand All @@ -14,12 +15,17 @@ public class OtelTraceRawProcessorConfig {
static final Duration DEFAULT_TRACE_ID_TTL = Duration.ofSeconds(15L);
static final long MAX_TRACE_ID_CACHE_SIZE = 1_000_000L;
@JsonProperty("trace_flush_interval")
@JsonPropertyDescription("Represents the time interval in seconds to flush all the descendant spans without any " +
"root span. Default is 180.")
private long traceFlushInterval = DEFAULT_TG_FLUSH_INTERVAL_SEC;

@JsonProperty("trace_group_cache_ttl")
@JsonPropertyDescription("Represents the time-to-live to cache a trace group details. Default is 15 seconds.")
private Duration traceGroupCacheTimeToLive = DEFAULT_TRACE_ID_TTL;

@JsonProperty("trace_group_cache_max_size")
@JsonPropertyDescription("Represents the maximum size of the cache to store the trace group details from root spans. " +
"Default is 1000000.")
private long traceGroupCacheMaxSize = MAX_TRACE_ID_CACHE_SIZE;

public long getTraceFlushIntervalSeconds() {
Expand Down

0 comments on commit 4a81da9

Please sign in to comment.