receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317

processors:
  memory_limiter:
    check_interval: 1s
    limit_percentage: 80
    spike_limit_percentage: 25
  # Drops probe traffic: log records and spans whose url.path is a health,
  # readiness or liveness endpoint.
  filter/drop-health-checks:
    error_mode: ignore
    logs:
      log_record:
        - IsMatch(attributes["url.path"], "^/(health|healthz|ready|readyz|live|livez)$")
    traces:
      span:
        - IsMatch(attributes["url.path"], "^/(health|healthz|ready|readyz|live|livez)$")
  batch:
    timeout: 5s

exporters:
  otlphttp:
    endpoint: https://your-backend:4318

service:
  pipelines:
    logs:
      receivers: [otlp]
      processors: [memory_limiter, filter/drop-health-checks, batch]
      exporters: [otlphttp]
    traces:
      receivers: [otlp]
      processors: [memory_limiter, filter/drop-health-checks, batch]
      exporters: [otlphttp]
