From cd03c9cc588dd52acf07b9dbea120b0678f8129b Mon Sep 17 00:00:00 2001 From: Daniel Strobusch <1847260+dastrobu@users.noreply.github.com> Date: Mon, 26 Aug 2024 08:35:59 +0200 Subject: [PATCH] add log_discarded_spans config for Tempo distributor to tempo-distributed chart. The new value enabled configuring `log_discarded_spans` like for `log_received_spans` as shown below: ``` distributor: config: log_discarded_spans: enabled: true log_received_spans: # ... ``` The feature was introduced in [tempo/#3964](https://github.com/grafana/tempo/pull/3964). Signed-off-by: Daniel Strobusch <1847260+dastrobu@users.noreply.github.com> --- charts/tempo-distributed/Chart.yaml | 2 +- charts/tempo-distributed/README.md | 5 ++++- charts/tempo-distributed/values.yaml | 10 ++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/charts/tempo-distributed/Chart.yaml b/charts/tempo-distributed/Chart.yaml index 573c9aa2f2..aeadbb0a74 100644 --- a/charts/tempo-distributed/Chart.yaml +++ b/charts/tempo-distributed/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: tempo-distributed description: Grafana Tempo in MicroService mode type: application -version: 1.30.0 +version: 1.31.0 appVersion: 2.7.0 engine: gotpl home: https://grafana.com/docs/tempo/latest/ diff --git a/charts/tempo-distributed/README.md b/charts/tempo-distributed/README.md index 6cd99b29a2..1377b7301f 100755 --- a/charts/tempo-distributed/README.md +++ b/charts/tempo-distributed/README.md @@ -1,6 +1,6 @@ # tempo-distributed -![Version: 1.30.0](https://img.shields.io/badge/Version-1.30.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.0](https://img.shields.io/badge/AppVersion-2.7.0-informational?style=flat-square) +![Version: 1.31.0](https://img.shields.io/badge/Version-1.31.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.7.0](https://img.shields.io/badge/AppVersion-2.7.0-informational?style=flat-square) Grafana Tempo in MicroService mode @@ -341,6 +341,9 @@ The memcached default args are removed and should be provided manually. The sett | distributor.autoscaling.targetCPUUtilizationPercentage | int | `60` | Target CPU utilisation percentage for the distributor | | distributor.autoscaling.targetMemoryUtilizationPercentage | string | `nil` | Target memory utilisation percentage for the distributor | | distributor.config.extend_writes | string | `nil` | Disables write extension with inactive ingesters | +| distributor.config.log_discarded_spans.enabled | bool | `false` | | +| distributor.config.log_discarded_spans.filter_by_status_error | bool | `false` | | +| distributor.config.log_discarded_spans.include_all_attributes | bool | `false` | | | distributor.config.log_received_spans | object | `{"enabled":false,"filter_by_status_error":false,"include_all_attributes":false}` | Enable to log every received span to help debug ingestion or calculate span error distributions using the logs | | distributor.config.log_received_traces | string | `nil` | WARNING: Deprecated. Use log_received_spans instead. | | distributor.extraArgs | list | `[]` | Additional CLI args for the distributor | diff --git a/charts/tempo-distributed/values.yaml b/charts/tempo-distributed/values.yaml index 80f486d61a..a81d3b33f0 100755 --- a/charts/tempo-distributed/values.yaml +++ b/charts/tempo-distributed/values.yaml @@ -573,6 +573,10 @@ distributor: enabled: false include_all_attributes: false filter_by_status_error: false + log_discarded_spans: + enabled: false + include_all_attributes: false + filter_by_status_error: false # -- Disables write extension with inactive ingesters extend_writes: null # -- Adds the appProtocol field to the distributor service. This allows distributor to work with istio protocol selection. @@ -1380,6 +1384,12 @@ config: | kafka: {{- toYaml .Values.traces.kafka | nindent 6 }} {{- end }} + {{- if .Values.distributor.config.log_discarded_spans.enabled }} + log_discarded_spans: + enabled: {{ .Values.distributor.config.log_discarded_spans.enabled }} + include_all_attributes: {{ .Values.distributor.config.log_discarded_spans.include_all_attributes }} + filter_by_status_error: {{ .Values.distributor.config.log_discarded_spans.filter_by_status_error }} + {{- end }} {{- if or .Values.distributor.config.log_received_traces .Values.distributor.config.log_received_spans.enabled }} log_received_spans: enabled: {{ or .Values.distributor.config.log_received_traces .Values.distributor.config.log_received_spans.enabled }}