# Get a list of spans returns "OK" response with pagination require "datadog_api_client" api_instance = DatadogAPIClient::V2::SpansAPI.new opts = { page_limit: 2, } api_instance.list_spans_get_with_pagination(opts) { |item| puts item }