Disable locally hosted signoz, add some extra telemetry logging (#536)

This commit is contained in:
Michael D Brown
2025-05-05 12:59:07 -04:00
committed by GitHub
parent a5ec2ea6fb
commit e0004b9d2e
3 changed files with 14 additions and 5 deletions
+3
View File
@@ -35,6 +35,9 @@ def init_telemetry(application_name: str):
if not os.getenv("OTEL_EXPORTER_OTLP_PROTOCOL"):
logger.warning("OTEL_EXPORTER_OTLP_PROTOCOL not set")
logger.info("Sending telemetry to %s", os.getenv("OTEL_EXPORTER_OTLP_ENDPOINT"))
logger.info("Sending telemetry using %s", os.getenv("OTEL_EXPORTER_OTLP_PROTOCOL"))
openlit.init(application_name=application_name)
+3 -2
View File
@@ -7,8 +7,9 @@ x-default-logging: &logging
max-file: "2"
tag: "{{.Name}}|{{.ImageName}}|{{.ID}}"
include:
- ./signoz/compose.yaml
# Uncomment to use self-deployed signoz
#include:
# - ./signoz/compose.yaml
services:
# dind:
+8 -3
View File
@@ -64,7 +64,12 @@ INDEX_OUTPUT_TASK_TIMEOUT_MS=120000
TRACED_VULNERABILITIES_TASK_TIMEOUT_MS=120000
# OTel
OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317
# Settings for locally hosted endpoint, currently disabled.
#OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317
# token is b64 encoded "username:password"
OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic dXNlcm5hbWU6cGFzc3dvcmQ="
OTEL_EXPORTER_OTLP_PROTOCOL="grpc"
#OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic dXNlcm5hbWU6cGFzc3dvcmQ="
#OTEL_EXPORTER_OTLP_PROTOCOL="grpc"
# Settings for externally hosted endpoint, make sure to set endpoint to url (kept secret)
OTEL_EXPORTER_OTLP_ENDPOINT=""
OTEL_EXPORTER_OTLP_PROTOCOL="http"