From a66fedec0f77424eebd728ed4c9ce3e46651945d Mon Sep 17 00:00:00 2001 From: Adnan Kamili Date: Tue, 3 Sep 2024 12:53:03 +0530 Subject: [PATCH] feat: add support for multiple otlp headers --- cryptlex/cryptlex-enterprise/Chart.yaml | 4 ++-- .../templates/secrets/web-api-secret.yaml | 7 ++++++- cryptlex/cryptlex-enterprise/values.yaml | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/cryptlex/cryptlex-enterprise/Chart.yaml b/cryptlex/cryptlex-enterprise/Chart.yaml index 9e29153c..217b83d6 100644 --- a/cryptlex/cryptlex-enterprise/Chart.yaml +++ b/cryptlex/cryptlex-enterprise/Chart.yaml @@ -6,7 +6,7 @@ home: https://cryptlex.com icon: https://cryptlex.com/images/cryptlex_icon.png # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: "3.17.13" +version: "3.17.14" # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. -appVersion: "3.17.13" +appVersion: "3.17.14" diff --git a/cryptlex/cryptlex-enterprise/templates/secrets/web-api-secret.yaml b/cryptlex/cryptlex-enterprise/templates/secrets/web-api-secret.yaml index e796b4fd..36979b28 100644 --- a/cryptlex/cryptlex-enterprise/templates/secrets/web-api-secret.yaml +++ b/cryptlex/cryptlex-enterprise/templates/secrets/web-api-secret.yaml @@ -81,4 +81,9 @@ stringData: {{ end }} {{ end }} NEW_RELIC_LICENSE_KEY: {{ .Values.webApi.newRelic.licenseKey | quote }} - OTEL_EXPORTER_OTLP_HEADERS: {{ .Values.webApi.openTelemetry.otlpHeaders | quote }} \ No newline at end of file + OTEL_EXPORTER_OTLP_HEADERS: "{{- range $index, $header := .Values.webApi.openTelemetry.otlpHeaders -}} + {{- if $index }}, {{ end -}} + {{- range $key, $value := $header }} + {{ $key }}={{ $value }} + {{ end -}} + {{- end }}" \ No newline at end of file diff --git a/cryptlex/cryptlex-enterprise/values.yaml b/cryptlex/cryptlex-enterprise/values.yaml index 1234eab7..04eff60a 100644 --- a/cryptlex/cryptlex-enterprise/values.yaml +++ b/cryptlex/cryptlex-enterprise/values.yaml @@ -226,7 +226,8 @@ webApi: # OpenTelemetry openTelemetry: otlpEndpoint: "" - otlpHeaders: "" + otlpHeaders: [] + # Hangfire dashboard hangfireDashboard: username: ""