local typedefs = require "kong.db.schema.typedefs"

return {
    name = "trace",
    fields = {
        {protocols = typedefs.protocols_http},
        {consumer = typedefs.no_consumer}, {
            config = {
                type = "record",
                fields = {
                    {
                        sample_ratio = {
                            type = "number",
                            default = 1,
                            between = {0, 1}
                        }
                    }
                }
            }
        }
    }
}
