From 77fd89f7fc406efbd1172ff48493497375fa1695 Mon Sep 17 00:00:00 2001 From: Robbie Lankford Date: Fri, 8 Dec 2023 18:30:48 -0800 Subject: [PATCH] otelcol.connector.servicegraph: update default store ttl value Signed-off-by: Robbie Lankford --- CHANGELOG.md | 2 ++ component/otelcol/connector/servicegraph/servicegraph.go | 2 +- .../reference/components/otelcol.connector.servicegraph.md | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e08d1682dbd1..40432c8ed847 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,8 @@ Main (unreleased) - Fixes `loki.source.docker` a behavior that synced an incomplete list of targets to the tailer manager. (@FerdinandvHagen) +- Fixes `otelcol.connector.servicegraph` store ttl default value from 2ms to 2s. (@rlankfo) + ### Other changes - Bump github.com/IBM/sarama from v1.41.2 to v1.42.1 diff --git a/component/otelcol/connector/servicegraph/servicegraph.go b/component/otelcol/connector/servicegraph/servicegraph.go index e5370d89f620..c1713cca5ad5 100644 --- a/component/otelcol/connector/servicegraph/servicegraph.go +++ b/component/otelcol/connector/servicegraph/servicegraph.go @@ -91,7 +91,7 @@ var DefaultArguments = Arguments{ Dimensions: []string{}, Store: StoreConfig{ MaxItems: 1000, - TTL: 2 * time.Millisecond, + TTL: 2 * time.Second, }, CacheLoop: 1 * time.Minute, StoreExpirationLoop: 2 * time.Second, diff --git a/docs/sources/flow/reference/components/otelcol.connector.servicegraph.md b/docs/sources/flow/reference/components/otelcol.connector.servicegraph.md index e7aad20d8e29..ab3e55b5521f 100644 --- a/docs/sources/flow/reference/components/otelcol.connector.servicegraph.md +++ b/docs/sources/flow/reference/components/otelcol.connector.servicegraph.md @@ -135,7 +135,7 @@ The `store` block configures the in-memory store for spans. Name | Type | Description | Default | Required ---- | ---- | ----------- | ------- | -------- `max_items` | `number` | Maximum number of items to keep in the store. | `1000` | no -`ttl` | `duration` | The time to live for spans in the store. | `"2ms"` | no +`ttl` | `duration` | The time to live for spans in the store. | `"2s"` | no ### output block @@ -238,4 +238,4 @@ connection work correctly. Refer to the linked documentation for more details. {{% /admonition %}} - \ No newline at end of file +