remove spans, log geocoding shit bc of cost

This commit is contained in:
Will Freeman
2026-04-29 21:34:51 -06:00
parent d446cfcd15
commit ec8bb9cdca
10 changed files with 171 additions and 291 deletions
+2 -20
View File
@@ -1,6 +1,6 @@
# OpenTelemetry Collector configuration for deflock-api
# Receives traces and logs from the API, forwards to Grafana Cloud via the
# unified OTLP gateway (routes traces → Tempo, logs → Loki automatically).
# Receives logs and metrics from the API, forwards to Grafana Cloud via the
# unified OTLP gateway (routes logs → Loki, metrics → Mimir automatically).
#
# Required environment variables (set in /etc/systemd/system/otelcol.service):
# GRAFANA_OTLP_ENDPOINT e.g. https://otlp-gateway-prod-us-east-0.grafana.net/otlp
@@ -19,20 +19,6 @@ processors:
timeout: 5s
send_batch_size: 256
# Drop healthcheck spans to reduce noise
filter/drop_healthcheck:
error_mode: ignore
traces:
span:
- 'attributes["http.route"] == "/healthcheck"'
# Only forward spans that resulted in an error
filter/errors_only:
error_mode: ignore
traces:
span:
- 'status.code != STATUS_CODE_ERROR'
# Drop 404 log records to reduce noise
filter/drop_404_logs:
error_mode: ignore
@@ -61,10 +47,6 @@ service:
level: none
extensions: [basicauth/grafana, health_check]
pipelines:
traces:
receivers: [otlp]
processors: [filter/drop_healthcheck, filter/errors_only, batch]
exporters: [otlp_http/grafana]
logs:
receivers: [otlp]
processors: [filter/drop_404_logs, batch]