Skip to content

Commit 800fe1d

Browse files
authored
feat: support apisix.tracing configuration (#270)
1 parent a73c426 commit 800fe1d

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

charts/gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type: application
1414
# This is the chart version. This version number should be incremented each time you make changes
1515
# to the chart and its templates, including the app version.
1616
# Versions are expected to follow Semantic Versioning (https://semver.org/)
17-
version: 0.2.57
17+
version: 0.2.58
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to

charts/gateway/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ The command removes all the Kubernetes components associated with the chart and
134134
| apisix.timezone | string | `""` | timezone is the timezone where apisix uses. For example: "UTC" or "Asia/Shanghai" This value will be set on apisix container's environment variable TZ. You may need to set the timezone to be consistent with your local time zone, otherwise the apisix's logs may used to retrieve event maybe in wrong timezone. |
135135
| apisix.tolerations | list | `[]` | List of node taints to tolerate |
136136
| apisix.topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pod assignment https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ The value is evaluated as a template |
137+
| apisix.tracing | bool | `false` | Enable comprehensive request lifecycle tracing (SSL/SNI, rewrite, access, header_filter, body_filter, and log). When disabled, OpenTelemetry collects only a single span per request. |
137138
| autoscaling.enabled | bool | `false` | |
138139
| autoscaling.maxReplicas | int | `100` | |
139140
| autoscaling.minReplicas | int | `1` | |

charts/gateway/templates/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ data:
159159
neg_ttl: {{ .Values.apisix.lru.secret.neg_ttl }}
160160
neg_count: {{ .Values.apisix.lru.secret.neg_count }}
161161
162+
tracing: {{ .Values.apisix.tracing }}
163+
162164
nginx_config: # config for render the template to genarate nginx.conf
163165
error_log: "{{ .Values.logs.errorLog }}"
164166
error_log_level: "{{ .Values.logs.errorLogLevel }}" # warn,error

charts/gateway/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ apisix:
9797
neg_ttl: 60
9898
neg_count: 512
9999

100+
# -- Enable comprehensive request lifecycle tracing (SSL/SNI, rewrite, access, header_filter, body_filter, and log).
101+
# When disabled, OpenTelemetry collects only a single span per request.
102+
tracing: false
103+
100104
# -- Add custom [lua_shared_dict](https://github.com/openresty/lua-nginx-module#toc88) settings,
101105
# click [here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml#L27-L30) to learn the format of a shared dict
102106
customLuaSharedDicts: []

0 commit comments

Comments
 (0)