Skip to content

Limitador instrumentation sandbox

Limitador is configured to push traces to an opentelemetry collector.

Run sandbox

make build
make deploy-redis-otel

Run some traffic

make grpcurl
bin/grpcurl -plaintext -d @ 127.0.0.1:18081 envoy.service.ratelimit.v3.RateLimitService.ShouldRateLimit <<EOM
{
    "domain": "test_namespace",
    "hits_addend": 1,
    "descriptors": [
        {
            "entries": [
                {
                    "key": "req.method",
                    "value": "POST"
                }
            ]
        }
    ]
}
EOM

See the trace in UI

firefox -private-window "localhost:16686"

Screenshot 2024-03-21 at 17-08-35 Jaeger UI

Recommended to start looking at check_and_update operation.

Tear down sandbox

make clean