Skip to content

Commit

Permalink
[#522] Add useLegacyTraceContextFormat property in values.yaml.
Browse files Browse the repository at this point in the history
  • Loading branch information
calohmn committed Feb 12, 2024
1 parent d66704d commit ccd0582
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions charts/hono/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ The command removes all the Kubernetes components associated with the chart and
* Use Hono 2.5.0 container images.
* Update bitnami/kafka chart to version 26.8.x which uses Kafka 3.6 in Kraft mode.
* Update to latest MongoDB chart version 13.x.
* Add a `useLegacyAmqpTraceContextFormat` configuration property, allowing usage of a more generic format
for storing OpenTelemetry trace context information in messages exchanged with an AMQP messaging network.

### 2.5.6

Expand Down
4 changes: 3 additions & 1 deletion charts/hono/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, 2023 Contributors to the Eclipse Foundation
# Copyright (c) 2019 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
Expand Down Expand Up @@ -266,6 +266,7 @@ messaging:
certPath: {{ .dot.Values.adapters.amqpMessagingNetworkSpec.certPath | quote }}
trustStorePath: {{ .dot.Values.adapters.amqpMessagingNetworkSpec.trustStorePath | quote }}
hostnameVerificationRequired: {{ .dot.Values.adapters.amqpMessagingNetworkSpec.hostnameVerificationRequired }}
useLegacyTraceContextFormat: {{ .dot.Values.useLegacyAmqpTraceContextFormat }}
{{- else }}
{{- required ".Values.adapters.amqpMessagingNetworkSpec MUST be set if example AMQP Messaging Network is disabled" .dot.Values.adapters.amqpMessagingNetworkSpec | toYaml | nindent 2 }}
{{- end }}
Expand Down Expand Up @@ -372,6 +373,7 @@ command:
certPath: {{ .dot.Values.adapters.commandAndControlSpec.certPath | quote }}
trustStorePath: {{ .dot.Values.adapters.commandAndControlSpec.trustStorePath | quote }}
hostnameVerificationRequired: {{ .dot.Values.adapters.commandAndControlSpec.hostnameVerificationRequired }}
useLegacyTraceContextFormat: {{ .dot.Values.useLegacyAmqpTraceContextFormat }}
{{- else }}
{{- required ".Values.adapters.commandAndControlSpec MUST be set if example AMQP Messaging Network is disabled" .dot.Values.adapters.commandAndControlSpec | toYaml | nindent 2 }}
{{- end -}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2021, 2022 Contributors to the Eclipse Foundation
# Copyright (c) 2021 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
Expand Down Expand Up @@ -88,6 +88,7 @@ stringData:
certPath: {{ .Values.adapters.commandAndControlSpec.certPath }}
trustStorePath: {{ .Values.adapters.commandAndControlSpec.trustStorePath }}
hostnameVerificationRequired: {{ .Values.adapters.commandAndControlSpec.hostnameVerificationRequired }}
useLegacyTraceContextFormat: {{ .Values.useLegacyAmqpTraceContextFormat }}
{{- else }}
{{- required ".Values.adapters.commandAndControlSpec MUST be set if example AMQP Messaging Network is disabled" .Values.adapters.commandAndControlSpec | toYaml | nindent 8 }}
{{- end }}
Expand Down
10 changes: 9 additions & 1 deletion charts/hono/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2019, 2023 Contributors to the Eclipse Foundation
# Copyright (c) 2019 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
Expand Down Expand Up @@ -105,6 +105,14 @@ serviceType:
messagingNetworkTypes:
- "kafka"

# useLegacyAmqpTraceContextFormat determines how OpenTelemetry trace context information
# is stored in an AMQP 1.0 message sent to the AMQP Messaging Network. A "true" value here
# configures the format used in previous Hono versions, while setting "false" chooses a more
# generic format (compatible with e.g. Eclipse Ditto). Refer to
# https://www.eclipse.org/hono/docs/admin-guide/hono-client-configuration/
# for the documentation of the corresponding "useLegacyTraceContextFormat" Hono client property.
useLegacyAmqpTraceContextFormat: true

# Configuration properties for protocol adapters.
adapters:

Expand Down

0 comments on commit ccd0582

Please sign in to comment.