Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions charts/gitops/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,33 @@ spec:
secretKeyRef:
name: {{ .Release.Name }}-secret
key: GITHUB_WEBHOOK_KEY
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://$(NODE_IP):4317"
- name: OTEL_PYTHON_LOG_CORRELATION
value: "True"
- name: OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED
value: "True"
- name: OTEL_LOGS_EXPORTER
value: "otlp"
- name: OTEL_METRICS_EXPORTER
value: "none"
- name: OTEL_TRACES_EXPORTER
value: "otlp"
- name: OTEL_SERVICE_NAME
value: "gitops"
- name: OTEL_EXPORTER_OTLP_TIMEOUT
value: "1"
- name: OTEL_RESOURCE_ATTRIBUTES:
value: "cluster={{.Values.cluster}}"
# We want to limit the length of the attributes so that we don't store too much
- name: OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT
value: "512"
- name: OTEL_PYTHON_EXCLUDED_URLS
value: "pingz,livez,readyz,metrics,robots.txt,favicon.ico"
volumeMounts:
- name: git-crypt-key
mountPath: "/etc/gitops"
Expand Down
1 change: 1 addition & 0 deletions gitops_server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from gitops_server.app import app
from gitops_server.workers import DeployQueueWorker

LOGGING = DEFAULT_LOGGING_CONFIG_DICT
manually_instrument_logging()
manually_instrument_fastapi()

Expand Down
Loading